/* Custom Font Declarations */
@font-face {
    font-family: 'GT Eesti Pro Display';
    src: url('/fonts/gteestiprodisplay_thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'GT Eesti Pro Display';
    src: url('/public/fonts/gteestiprodisplay_light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'GT Eesti Pro Display';
    src: url('/public/fonts/gteestiprodisplay_regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'GT Eesti Pro Display';
    src: url('/public/fonts/gteestiprodisplay_medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'GT Eesti Pro Display';
    src: url('/public/fonts/gteestiprodisplay_bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'GT Eesti Pro Display';
    src: url('/public/fonts/gteestiprodisplay_ultrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

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

body {
    font-family: 'GT Eesti Pro Display', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a3a6e;
    min-height: 100vh;
}

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

/* Header Logos */
.header-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.logo {
    height: 40px;
}

.logo-rexona {
    display: flex;
    flex-direction: column;
    color: white;
}

.logo-rexona img {
    height: 30px;
}

.logo-rexona span {
    font-size: 8px;
    color: #7fbfff;
}

/* Main Content */
.main-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
}

/* Left Section - Info */
.info-section {
    flex: 1;
    max-width: 500px;
}

.campaign-logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
}

.campaign-logo img {
    width: 100%;
    max-width: 450px;
    height: auto;
}

.description {
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.description strong {
    font-weight: 700;
}

.description em {
    font-style: italic;
    color: #4fc3f7;
}

/* Right Section - Form */
.form-section {
    flex: 1;
    max-width: 450px;
}

.form-card {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.form-card h2 {
    text-align: center;
    color: #1a3a6e;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a3a6e;
    box-shadow: 0 0 0 3px rgba(26, 58, 110, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

/* Error States */
.form-group input.error,
.form-group select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group input.error:focus,
.form-group select.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    align-items: center;
    gap: 5px;
}

.error-message.visible {
    display: flex;
}

.error-message svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.checkbox-group.error input[type="checkbox"] {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

.checkbox-group .error-message {
    margin-top: 8px;
    margin-left: 28px;
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.file-upload input[type="file"]::file-selector-button {
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    transition: background 0.3s;
}

.file-upload input[type="file"]::file-selector-button:hover {
    background: #e0e0e0;
}

/* Checkbox Terms */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #1a3a6e;
}

.checkbox-group label {
    font-size: 13px;
    color: #555;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-group label a {
    color: #1a3a6e;
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    background: #1a3a6e;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.4s ease, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover:not(:disabled) {
    background: #0d2a52;
    transform: translateY(-2px);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.9;
}

.submit-btn.loading {
    background: #1a3a6e;
}

.submit-btn.success {
    background: #28a745;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Terms Accordion */
.terms-section {
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.accordion {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.accordion-header {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.2);
}

.accordion-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.accordion.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(255, 255, 255, 0.95);
}

.accordion.active .accordion-content {
    max-height: 580px;
}

.accordion-body {
    padding: 25px;
    color: #333;
    font-size: 14px;
    line-height: 1.7;
}

.accordion-body h4 {
    color: #1a3a6e;
    margin-bottom: 15px;
    font-size: 16px;
}

.accordion-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.accordion-body li {
    margin-bottom: 8px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
        align-items: center;
    }

    .info-section {
        max-width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }

    .campaign-logo {
        display: flex;
        justify-content: center;
    }

    .campaign-logo img {
        max-width: 350px;
    }

    .form-section {
        max-width: 100%;
        width: 100%;
    }

    .header-logos {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .campaign-logo img {
        max-width: 280px;
    }

    .form-card {
        padding: 25px;
        border-radius: 20px;
    }

    .form-card h2 {
        font-size: 22px;
    }

    .description {
        font-size: 13px;
    }

    .accordion-header h3 {
        font-size: 15px;
    }
}