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

body {
    font-family: 'Assistant', sans-serif;
    background: linear-gradient(135deg, #2e4a8f 0%, #4a6cb8 50%, #5a7cc2 100%);
    min-height: 100vh;
    padding: 1.5rem 1rem;
    color: #1a2744;
}

h1, h2, h3, h4 {
    font-family: 'Heebo', sans-serif;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.form-wrapper {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Logo Section */
.logo-section {
    background: linear-gradient(135deg, #2e4a8f 0%, #4a6cb8 100%);
    padding: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    max-width: 350px;
    max-height: 100px;
    height: auto;
    width: 100%;
}

/* Header */
.header {
    background: linear-gradient(135deg, #6bb344 0%, #7bc44f 100%);
    padding: 2.5rem 2rem;
    text-align: center;
}

.main-title {
    color: white;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.subtitle {
    color: #f0f9ec;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Form */
.form-content {
    padding: 2rem 1.75rem;
}

.section-box {
    background: #fafbfc;
    border: 2px solid #e8ecf0;
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.section-box:hover {
    box-shadow: 0 4px 16px rgba(46, 74, 143, 0.08);
}

.section-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #2e4a8f;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #6bb344;
    display: inline-block;
}

.helper-text {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #f0f9ec 0%, #e8f5e0 100%);
    border: 2px solid #6bb344;
}

.info-content {
    margin-top: 0.75rem;
}

.info-text {
    color: #2d5016;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 600;
}

/* Why Us Box */
.why-us-box {
    background: linear-gradient(135deg, #eef4fb 0%, #e0ebf8 100%);
    border: 2px solid #4a6cb8;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 2px solid #d0e0f5;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    border-color: #4a6cb8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 108, 184, 0.15);
}

.benefit-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #6bb344 0%, #7bc44f 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.benefit-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.benefit-text strong {
    color: #2e4a8f;
    font-size: 0.95rem;
    font-weight: 800;
}

.benefit-text span {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Radio Group Vertical */
.radio-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Radio Group Horizontal - Compact */
.radio-group-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .radio-group-horizontal {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .radio-group-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .radio-group-horizontal {
        grid-template-columns: 1fr;
    }
}

.radio-label-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 0.75rem;
    background: white;
    border: 2px solid #d0e0f5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.radio-label-compact:hover {
    border-color: #6bb344;
    background: #f9fef7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 179, 68, 0.12);
}

.radio-label-compact:has(.radio-input:checked) {
    border-color: #6bb344;
    background: linear-gradient(135deg, #f0f9ec 0%, #f9fef7 100%);
    box-shadow: 0 4px 16px rgba(107, 179, 68, 0.2);
}

.radio-text-compact {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2e4a8f;
    line-height: 1.3;
}

.radio-label-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border: 2px solid #d0e0f5;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label-box:hover {
    border-color: #6bb344;
    background: #f9fef7;
    transform: translateX(-4px);
    box-shadow: 0 4px 16px rgba(107, 179, 68, 0.12);
}

.radio-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #6bb344;
    flex-shrink: 0;
    margin-top: 2px;
}

.radio-label-box:has(.radio-input:checked) {
    border-color: #6bb344;
    background: linear-gradient(135deg, #f0f9ec 0%, #f9fef7 100%);
    box-shadow: 0 6px 20px rgba(107, 179, 68, 0.2);
}

.radio-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.radio-text {
    font-size: 1.05rem;
    font-weight: 800;
    color: #2e4a8f;
}

.radio-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    font-weight: 500;
}

/* Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .full-width {
        grid-column: 1 / -1;
    }
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
}

.label {
    color: #2e4a8f;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.required {
    color: #ef4444;
    font-weight: 900;
}

.input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border: 2px solid #d0e0f5;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    font-family: 'Assistant', sans-serif;
}

.input:focus {
    outline: none;
    border-color: #6bb344;
    box-shadow: 0 0 0 4px rgba(107, 179, 68, 0.1);
}

.input:hover {
    border-color: #4a6cb8;
}

.input::placeholder {
    color: #94a3b8;
}

/* Radio Groups Inline */
.radio-group-inline {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.radio-label-inline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid #d0e0f5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label-inline:hover {
    border-color: #6bb344;
    background: #f9fef7;
}

.radio-label-inline:has(.radio-input:checked) {
    border-color: #6bb344;
    background: linear-gradient(135deg, #f0f9ec 0%, #f9fef7 100%);
    box-shadow: 0 3px 12px rgba(107, 179, 68, 0.15);
}

/* File Upload */
.input-file {
    width: 100%;
    padding: 1rem;
    font-size: 0.9rem;
    border: 2px dashed #d0e0f5;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Assistant', sans-serif;
}

.input-file:hover {
    border-color: #6bb344;
    background: #f9fef7;
}

.input-file::-webkit-file-upload-button {
    background: linear-gradient(135deg, #6bb344 0%, #7bc44f 100%);
    color: white;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-left: 1rem;
    font-family: 'Assistant', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(107, 179, 68, 0.2);
}

.input-file::-webkit-file-upload-button:hover {
    background: linear-gradient(135deg, #5a9f37 0%, #6bb344 100%);
}

/* Signature */
.signature-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.signature-canvas {
    width: 100%;
    max-width: 100%;
    height: 180px;
    border: 3px solid #d0e0f5;
    border-radius: 12px;
    background: white;
    cursor: crosshair;
    touch-action: none;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #2e4a8f 0%, #4a6cb8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Assistant', sans-serif;
    box-shadow: 0 4px 12px rgba(46, 74, 143, 0.25);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #233a73 0%, #2e4a8f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(46, 74, 143, 0.35);
}

/* Terms */
.terms-box {
    background: linear-gradient(135deg, #fef9f5 0%, #fff8f0 100%);
    border: 2px solid #fb923c;
}

.checkbox-label-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    cursor: pointer;
}

.checkbox-text-terms {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #1a2744;
    font-weight: 600;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #6bb344;
    flex-shrink: 0;
    margin-top: 2px;
}

.link {
    color: #2e4a8f;
    text-decoration: underline;
    font-weight: 800;
}

.link:hover {
    color: #6bb344;
}

/* Submit */
.submit-container {
    text-align: center;
    margin-top: 2rem;
}

.submit-button {
    width: 100%;
    max-width: 100%;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #6bb344 0%, #7bc44f 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(107, 179, 68, 0.35);
    font-family: 'Heebo', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-button:hover {
    background: linear-gradient(135deg, #5a9f37 0%, #6bb344 100%);
    box-shadow: 0 12px 35px rgba(107, 179, 68, 0.45);
    transform: translateY(-3px);
}

.submit-button:active {
    transform: translateY(-1px);
}

.submit-button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* Footer */
.footer-text {
    text-align: center;
    padding: 2rem 1rem;
    color: white;
}

.footer-line {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-line a {
    color: white !important;
    text-decoration: none;
    font-weight: 600;
}

.footer-line a:hover {
    text-decoration: underline;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Hidden */
.hidden {
    display: none !important;
}

/* Child Details */
.child-box {
    background: linear-gradient(135deg, #f0f9ec 0%, #e8f5e0 100%);
    border: 2px solid #6bb344;
}

.child-box .section-title {
    font-size: 1.2rem;
    color: #2d5016;
    border-bottom-color: #6bb344;
}

/* Responsive */
@media (max-width: 599px) {
    body {
        padding: 1rem 0.5rem;
    }
    
    .logo-section {
        padding: 1.5rem 1rem;
    }
    
    .logo-image {
        max-width: 280px;
    }
    
    .header {
        padding: 2rem 1.5rem;
    }
    
    .main-title {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .form-content {
        padding: 1.5rem 1.25rem;
    }
    
    .section-box {
        padding: 1.25rem;
    }
    
    .submit-button {
        font-size: 1.1rem;
        padding: 1.1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading State */
.submit-button.loading {
    position: relative;
    color: transparent;
}

.submit-button.loading::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    margin-left: -12px;
    margin-top: -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* Smooth transitions */
.section-box,
.radio-label-box,
.radio-label-inline,
.input,
.input-file,
.submit-button,
.btn-secondary,
.benefit-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus visible */
.checkbox-input:focus-visible,
.radio-input:focus-visible {
    outline: 3px solid #6bb344;
    outline-offset: 3px;
}

/* Select styling */
select.input {
    cursor: pointer;
    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='%232e4a8f' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    padding-left: 2.5rem;
}

/* Number input */
input[type="number"].input {
    appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Radio Group Horizontal - Large and spread */
.radio-group-horizontal-large {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .radio-group-horizontal-large {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .radio-group-horizontal-large {
        grid-template-columns: 1fr;
    }
}

.radio-label-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: white;
    border: 3px solid #d0e0f5;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 80px;
}

.radio-label-large:hover {
    border-color: #6bb344;
    background: #f9fef7;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(107, 179, 68, 0.15);
}

.radio-label-large:has(.radio-input:checked) {
    border-color: #6bb344;
    background: linear-gradient(135deg, #f0f9ec 0%, #f9fef7 100%);
    box-shadow: 0 6px 24px rgba(107, 179, 68, 0.25);
    transform: translateY(-2px);
}

.radio-text-large {
    font-size: 1.15rem;
    font-weight: 800;
    color: #2e4a8f;
    line-height: 1.3;
}

/* Hover info text */
.hover-info-text {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #4a6cb8;
    border-radius: 12px;
    color: #2e4a8f;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hover-info-text.show {
    opacity: 1;
}

.hover-info-text:empty {
    display: none;
}

/* Why us compact */
.why-us-box-compact {
    background: linear-gradient(135deg, #f0f9ec 0%, #e8f5e0 100%);
    border: 2px solid #6bb344;
    padding: 1.25rem;
}

.why-us-content-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.why-us-content-compact strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: #2d5016;
}

.why-us-content-compact span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d5016;
    line-height: 1.6;
}

@media (max-width: 599px) {
    .why-us-content-compact {
        gap: 0.75rem;
    }
    
    .why-us-content-compact strong {
        font-size: 1rem;
    }
    
    .why-us-content-compact span {
        font-size: 0.875rem;
    }
}
