/* IELTS Registration Form Styles */
.ielts-registration-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.ielts-registration-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    border: 1px solid #e8e8e8;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.form-header h2 {
    color: #1a365d;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.form-header p {
    color: #64748b;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

/* Form Sections */
.form-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.form-section {
    background: #fafbfc;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #e2e8f0;
}

.form-section h3 {
    color: #1a365d;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    transition: all 0.2s ease;
    color: #374151;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Select Styling */
.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* Submit Button */
.submit-button {
    width: 100%;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.path {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Response Messages */
.response-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
}

.response-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.response-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Success Message */
.success-message {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

/* Contact Note */
.contact-note {
    background: #fffcef;
    border: 1px solid #ffe4b5;
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.contact-note p {
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
    font-style: italic;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ielts-registration-form-container {
        padding: 10px;
    }
    
    .ielts-registration-form-wrapper {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    

    
    .form-header h2 {
        font-size: 24px;
    }
    
    .form-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .ielts-registration-form-wrapper {
        padding: 20px;
    }
    
    .form-header h2 {
        font-size: 22px;
    }
    
    .form-section {
        padding: 15px;
    }
}

/* Focus States for Accessibility */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.submit-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Error States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.error label {
    color: #ef4444;
}

/* Success States */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Disabled States */
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}
