/* Progress Bar Styles */
:root {
    /* Update colors to match style.css */
    --accent-color: #ededed;
    --primary-color: #1C79C2;
    --secondary-color: #1f9dfe;
    --text-dark-color: #1d1b1b;
    --text-light-color: #3f3f3f;
    --text-color: #1f2937;
    --span-primary-color: #24ca6f;
    --span-secondary-color: #ffb534;
    --rating: #ffd700;
    --body-color: #fff;

    /* Typography matching style.css */
    --first-font: "Inter", sans-serif;
    --second-font: "Montserrat", sans-serif;

    /* Responsive Font Sizes using clamp() for fluid typography */
    --h1-font-size: clamp(2.6rem, 5vw, 4.2rem);
    --h2-font-size: clamp(2rem, 4vw, 3rem);
    --h3-font-size: clamp(1.5rem, 3vw, 2.2rem);
    --sub-heading-size: clamp(1.1rem, 2vw, 1.6rem);
    --normal-font-size: clamp(0.9rem, 1vw, 1rem);
    --small-font-size: clamp(0.8rem, 0.9vw, 0.9rem);

    /* Additional variables for form styling */
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --border-color: #eaeaea;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --success-color: #d1fae5;
    --success-text: #065f46;
    --form-bg: #f8f9fa;
}

.progress-container {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 4px;
    background: var(--background-light);
}

.progress-bar {
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.2s ease;
}

/* Gradient Text Style - Matching index.html */
.gradient-text {
    background: linear-gradient(90deg, rgba(28,121,194,1) 37%, rgba(72,193,86,1) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Form Container Styles */
.registration-container {
    max-width: 1200px;
    margin: 8rem auto 3rem; /* Increased top margin to account for fixed header */
    padding: 2rem;
    background: var(--body-color);
    border-radius: 15px;
    box-shadow: 0 5px 25px var(--shadow-color);
    font-family: var(--first-font);
    color: var(--text-color);
}

/* Form Header Styles */
.form-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(145deg, var(--background-light), var(--background-white));
    border-radius: 10px;
    box-shadow: 0 2px 15px var(--shadow-color);
}

.form-logo {
    max-width: 180px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.form-logo:hover {
    transform: scale(1.05);
}

.form-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: var(--h3-font-size);
    font-family: var(--second-font);
}

.form-header p {
    color: var(--text-light-color);
    font-size: var(--normal-font-size);
    font-family: var(--first-font);
}

/* Form Section Styles */
.form-section {
    background: var(--background-white);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--first-font);
}

.form-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.form-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-family: var(--second-font);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.form-section h2 i {
    color: var(--span-primary-color);
    font-size: 1.8rem;
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: var(--normal-font-size);
    font-weight: 500;
    font-family: var(--second-font);
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-family: var(--first-font);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: var(--normal-font-size);
    background: var(--form-bg);
    color: var(--text-color);
    font-family: var(--first-font);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
    background: var(--background-white);
    box-shadow: 0 0 0 4px rgba(28, 121, 194, 0.1);
    outline: none;
}

/* Preference Items Styles */
.preferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.preference-item {
    background: var(--background-white);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    font-family: var(--first-font);
}

.preference-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.preference-item label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Address Section Styles */
.address-section {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

/* Submit Button Styles */
.form-submit {
    margin-top: 2rem;
    text-align: center;
}

/* Style matching the "Apply Now" button from index.html */
.submit-btn {
    background: linear-gradient(90deg, rgba(28,121,194,1) 37%, rgba(72,193,86,1) 95%);
    color: var(--body-color);
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: var(--normal-font-size);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(28, 121, 194, 0.2);
    font-family: var(--first-font);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(28, 121, 194, 0.3);
}

/* Style to match the exact button from index.html */
.btn {
    background: linear-gradient(90deg, rgba(28,121,194,1) 37%, rgba(72,193,86,1) 95%);
    color: var(--body-color);
    padding: 12px 30px;
    border-radius: var(--border-radius-1, 0.8rem);
    cursor: pointer;
    box-shadow: 0rem 0.5rem 1rem rgba(28, 121, 194, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 500;
    font-family: var(--first-font);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.7rem 1.5rem rgba(28, 121, 194, 0.4);
}

/* Checkbox Styles */
.address-checkbox {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.address-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* File Input Styling */
input[type="file"] {
    padding: 0.8rem;
    background: var(--background-light);
    border-radius: 8px;
    border: 1px dashed var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    font-family: var(--first-font);
}

input[type="file"]:hover {
    border-color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .registration-container {
        margin: 6rem 0 0; /* Adjusted for mobile view */
        padding: 0.5rem;
        border-radius: 0;
    }

    .form-section {
        padding: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .submit-btn {
        width: 100%;
        padding: 1rem;
    }
}

/* Loading State Styles */
.form-submit.loading .submit-btn {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success Message Styles */
.success-message {
    display: none;
    text-align: center;
    padding: 2rem;
    background: var(--success-color);
    border-radius: 8px;
    margin-top: 2rem;
    color: var(--success-text);
    font-family: var(--first-font);
}

.success-message.show {
    display: block;
    animation: slideUp 0.5s ease;
}

.success-message i {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #065f46;
}

/* Error Message Styles */
.error-message {
    display: none;
    text-align: center;
    padding: 2rem;
    background: #fee2e2;
    border-radius: 8px;
    margin-top: 2rem;
    color: #991b1b;
    font-family: var(--first-font);
}

.error-message.show {
    display: block;
    animation: slideUp 0.5s ease;
}

.error-message i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.error-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #991b1b;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Page Transition Animation */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.page-transition.active {
    transform: translateY(0);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 992px) {
    .registration-container {
        margin-top: 7rem; /* Adjusted for tablet view */
    }
}

@media (max-width: 768px) {
    .address-section,
    .academic-section,
    .work-section {
        background: var(--background-white);
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 10px var(--shadow-color);
    }

    .address-checkbox {
        padding: 0.8rem;
        margin: 1rem 0;
    }

    .form-group.full-width {
        margin-bottom: 1rem;
    }

    textarea {
        min-height: 80px;
    }
}

/* Enhanced Mobile Submit Button Styles */
@media (max-width: 768px) {
    .form-submit {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1rem;
        background: white;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
        z-index: 100;
        margin: 0;
    }

    .submit-btn {
        width: 100%;
        padding: 1rem;
        border-radius: 12px;
        font-size: 1.1rem;
        font-weight: 600;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.8rem;
        background: linear-gradient(90deg, rgba(28,121,194,1) 37%, rgba(72,193,86,1) 95%);
        box-shadow: 0 4px 15px rgba(28, 121, 194, 0.2);
        transition: all 0.3s ease;
    }

    .submit-btn:active {
        transform: scale(0.98);
        box-shadow: 0 2px 10px rgba(28, 121, 194, 0.1);
    }

    .submit-btn i {
        font-size: 1.2rem;
        animation: bounce 1s infinite;
    }

    /* Add extra padding to last form section to prevent button overlap */
    .form-section:last-of-type {
        margin-bottom: 80px;
    }
}

/* Bounce animation for the submit button icon */
@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

/* Extra small screens */
@media (max-width: 480px) {
    .registration-container {
        margin-top: 5rem; /* Further reduced for small mobile screens */
    }

    .submit-btn {
        font-size: 1rem;
        padding: 0.9rem;
    }

    .submit-btn i {
        font-size: 1.1rem;
    }
}

/* Ensure all text has proper font-family */
body {
    font-family: var(--first-font);
    color: var(--text-color);
}

/* Import fonts from style.css */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700;800&display=swap");

/* Additional styling for the enquiry form success message */
.return-home {
    margin-top: 1.5rem;
}

.return-home .btn {
    display: inline-block;
    background: var(--body-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.return-home .btn:hover {
    background: var(--primary-color);
    color: var(--body-color);
    transform: translateY(-3px);
}

/* Make the enquiry form more compact */
#enquiryForm .form-section {
    padding: 2rem;
}

#enquiryForm textarea {
    min-height: 120px;
}

/* Responsive adjustments for the enquiry form */
@media (max-width: 768px) {
    #enquiryForm .form-section {
        padding: 1.5rem;
    }
    
    #enquiryForm .return-home {
        margin-top: 1rem;
    }
    
    #enquiryForm .return-home .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}
