:root {
    --primary-color: #152672;
    --secondary-color: #3CA5FF;
    --text-color: #555555;
    --bg-color: #FCFCFC;
    --footer-bg: #111111;
    --footer-text: #919191;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

header .logo,
.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

header .logo img {
    width: 114px;
    height: 22px;
    opacity: 0.7;
    transform: scale(0.6);
    animation: logo-animation 0.5s forwards;
}

@keyframes logo-animation {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 20px;
    background-color: var(--primary-color);
    color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: solid 4px transparent;
}

header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 4px;
    background-color: #FF4545;
    animation: borderAnimation 1.5s ease-in-out forwards;
}

@keyframes borderAnimation {
    0% { width: 0; }
    100% { width: 100%; }
}

section {
    padding: 20px;
}

h1 {
    font-weight: 900;
    font-size: 3em;
    color: #200F4D;
}

h2 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    text-align: center;
    padding-bottom: 30px;
}

.headline-image {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 62px 0;
    position: relative;
}

.headline-image .image-container {
    max-width: 600px;
    margin: 0 auto;
    background: url('images/headline-image.png') no-repeat center center;
    background-size: contain;
    height: 400px;
}

.headline-image .text-container {
    margin: 0 auto;
    padding-bottom: 20px;
}

.headline-image .text-container p {
    font-size: 1.2em;
}

.company, .catalog, .quotation {
    padding: 60px;
    color: var(--text-color);
}

.catalog .container {
    text-align: center;
}

.catalog .container p {
    text-align: left;
}

.quotation {
    background-color: #152672;
    background-image: url('images/form_bgimg.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto 100%;
    color: #fff;
}

.quotation form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quotation .quotation-description,
.quotation input[type="text"],
.quotation input[type="email"],
.quotation textarea,
.quotation label,
.quotation .file-label,
.checkbox-container {
    width: 100%;
    max-width: 640px;
    margin: 10px 0;
}

.quotation .quotation-description,
.quotation label {
    color: #d3d3d3;
    font-size: 0.8em;
}

.quotation input[type="text"],
.quotation input[type="email"],
.quotation textarea {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-family: 'Lato', sans-serif;
    font-size: 0.8em;
    line-height: 1.8em;
    color: var(--text-color);
    margin-top: 3px;
}

.quotation input[type="text"]:focus,
.quotation input[type="email"]:focus,
.quotation textarea:focus {
    border-bottom: 2px solid #FF4545;
    outline: none;
}

.quotation label {
    margin-bottom: 0px;
}

.quotation textarea {
    height: 210px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d3d3d3;
    /* font-size: 0.8em; 폰트 크기 설정 제거 */
}

.checkbox-container label {
 font-size: 0.8em; /* 동일한 폰트 크기 적용 */
}

.checkbox-container input[type="checkbox"] {
    margin: 0 10px 0 0;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    transform: scale(1.2);
}

.btn-primary,
.quotation .file-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 0.8em;
    text-decoration: none;
    background-color: #278FFF;
    color: #fff;
    border: none;
}

.btn-primary:hover,
.quotation .file-label:hover {
    background-color: #ddd;
}

.btn-primary img,
.quotation .file-label img {
    margin-left: 5px;
    width: 24px;
    height: 24px;
}

#fileInfo,
#responseMessage {
    color: #00FF00;
    font-size: 0.9em;
    min-height: 24px;
}

#fileInfo {
    color: #fff;
}

.quotation input[type="file"] {
    display: none;
}

footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 45px;
    position: relative;
    width: 100%;
    font-size: 0.7em;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.footer-logo img {
    width: 91px;
    height: 17.6px;
    opacity: 0.6;
}

.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    transition: visibility 0s, opacity 0.3s linear !important;
}

.grecaptcha-badge.show {
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    .headline-image {
        padding: 60px 0;
    }

    .quotation .quotation-description,
    .quotation input[type="text"],
    .quotation input[type="email"],
    .quotation textarea,
    .quotation label,
    .quotation .btn-primary,
    .quotation .file-label,
    .checkbox-container {
        max-width: 378px;
    }

    .quotation {
        background-size: auto 60%;
    }

    .checkbox-container input[type="checkbox"] {
        width: 24px;
        height: 24px;
        margin: 0 20px 0 0;
        transform: scale(1.5);
    }

    
}

@media (max-width: 768px) and (orientation: portrait) {
    .company, .catalog, .quotation {
        padding-left: 20px;
        padding-right: 20px;
    }

}


.offers {
    padding: 60px 20px;
    background-color: #f5faff;
    text-align: center;
    color: var(--text-color);
    position: relative;
}

.offers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(180deg, rgba(60, 165, 255, 0.23) 0%, rgba(245, 250, 255, 0) 100%);
}

.product-group {
    margin: 30px 0;
}

.offers h3 {
    color: var(--secondary-color);
    font-weight: bold;
}

.size-buttons {
    margin-top: 10px;
}

.size-btn {
    margin: 5px;
    padding: 8px 14px;
    border: 1px solid #278FFF;
    border-radius: 20px;
    background-color: white;
    color: #278FFF;
    cursor: pointer;
    transition: all 0.3s;
}

.size-btn.selected {
    background-color: #278FFF;
    color: white;
}

.email-input-container {
    margin-top: 30px;
}

.email-input-container input {
    padding: 10px;
    width: 300px;
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 0.9em;
}