@font-face {
    font-family: 'Peyda';
    src: url('fonts/Peyda-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Peyda';
    src: url('fonts/Peyda-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

:root {
    --primary-color: #fe5400;
    --secondary-color: #6c757d;
    --dark-text: #40423f;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --body-bg: #e9ecef;
}

body {
    background-color: var(--body-bg);
    font-family: 'Peyda', sans-serif;
    color: var(--dark-text);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hidden {
    display: none !important;
}

.form-container {
    max-width: 700px;
    margin: auto;
    padding-bottom: 100px; /* Add padding to prevent content from being hidden by sticky footer on mobile */
}

.form-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.form-card-header {
    background-color: var(--light-bg);
    border-bottom: 1px solid #dee2e6;
    transition: opacity 0.4s ease;
}

.form-logo {
    max-height: 50px;
    width: auto;
}

.form-card-header h1 {
    font-weight: bold;
    color: var(--dark-text);
}

.form-card-body {
    min-height: 450px;
    position: relative;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#multi-step-form, #loading-section, #final-thank-you, #otp-verification-section {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 2.5rem;
}

#result-section {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1rem !important;
}


.form-page {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 1.5rem 2.5rem;
}

.form-page.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    display: flex;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress-bar {
    background-color: var(--primary-color);
    transition: width 0.4s ease-in-out;
}

.form-label {
    color: var(--dark-text);
}

.form-text {
    color: #6c757d;
    font-size: 0.9rem;
}

.form-select-lg, .form-control-lg {
    font-size: 1.2rem;
    padding: 0.75rem 1.5rem;
}

.form-check-lg {
    font-size: 1.2rem;
    padding-right: 2.25rem;
}
.form-check-lg .form-check-input {
    width: 1.5em;
    height: 1.5em;
    margin-right: -2.25rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.conditional-field {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    margin-top: 0;
}

.conditional-field.visible {
    opacity: 1;
    max-height: 500px;
    margin-top: 1rem;
}

.list-group-item {
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
}

.list-group-item .form-check-input {
    width: 1.5em;
    height: 1.5em;
    cursor: pointer;
}

.flag-icon {
    font-size: 1.5rem;
    margin-left: 0.5rem;
}

.star-rating-wrapper {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.star-rating-container {
    direction: ltr;
    display: inline-block;
}

.star {
    font-size: 2.5rem;
    color: #ced4da;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.star.hover, .star.selected {
    color: #ffc107;
    transform: scale(1.2);
}

.number-spinner input.form-control {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    font-weight: bold;
}
.number-spinner .btn {
    border-color: #ced4da;
    font-weight: bold;
}

.form-card-footer {
    background-color: var(--light-bg);
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    transition: opacity 0.4s ease;
}

.btn-check:checked+.btn-outline-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary, .btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover, .btn-success:hover {
    background-color: #e04a00;
    border-color: #e04a00;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-lg i {
    font-size: 1.5rem;
    vertical-align: middle;
}

#loading-section {
    align-items: center;
}

.loading-gif {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

#loading-section .video-wrapper,
#loading-section #loading-progress-container,
#result-section .video-wrapper {
    max-width: 600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#loading-section .video-wrapper {
    margin-bottom: 1rem;
}

#loading-video, #result-video {
    width: 100%;
    height: auto;
    display: block;
}

#loading-progress-container {
    height: 30px;
    background-color: #e9ecef;
    border-radius: 15px;
    padding: 3px;
}

#loading-progress-bar {
    background-color: var(--primary-color);
    font-size: 1rem;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease-in-out;
}

#result-section {
    align-items: center;
}

.video-card {
    width: 100%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 3;
    transition: opacity 0.3s;
}

.video-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 4;
    display: flex;
    gap: 0.5rem;
}

.result-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
    width: 100%;
}

.result-heading {
    background-color: var(--light-bg);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.result-heading h4, .result-heading p {
    color: var(--primary-color);
    margin-bottom: 0;
}

#ai-paragraph-result {
    font-size: 1.1rem;
    line-height: 1.8;
}

#final-thank-you {
    align-items: center;
}

.thank-you-content {
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.thank-you-icon {
    font-size: 5rem;
    color: #198754;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: .25rem;
    font-size: .875em;
    color: #dc3545;
}

#otp_code_input {
    letter-spacing: 0.5em;
    font-size: 1.5rem;
    font-weight: bold;
}

#resend-container a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.iti {
    width: 100%;
    direction: ltr;
}
/* START: Left-align country list */
.iti__country-list {
    text-align: left;
}
/* END: Left-align country list */
.iti--separate-dial-code .iti__selected-flag {
    background-color: #e9ecef;
}
#final_phone.form-control-lg {
    padding-right: 95px;
}

#booking-section {
    border-top: 1px solid #dee2e6;
    padding-top: 1.5rem;
}
.day-btn, .time-slot-btn {
    border-radius: 8px;
    font-weight: bold;
}
.time-slot-btn.booked {
    text-decoration: line-through;
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}
.time-slot-btn.selected {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.day-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    padding: 0.5rem 0.75rem;
    min-width: 80px;
}
.day-name {
    font-size: 0.9rem;
    font-weight: bold;
}
.day-date {
    font-size: 0.8rem;
}


@media (max-width: 767px) {
    body {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .form-card-header {
        padding: 1.5rem 1.5rem !important;
    }

    .form-card-body {
        min-height: auto;
    }

    #multi-step-form, 
    #loading-section, 
    #final-thank-you,
    #otp-verification-section,
    .form-page {
        padding: 1.5rem 1.5rem;
    }

    .form-label.fs-4 {
        font-size: 1.2rem !important;
    }

    .btn-lg {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }

    /* START: Sticky Footer for Mobile */
    .form-card {
        margin-bottom: 80px; /* Make space for the footer */
    }
    .form-card-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 700px; /* Match the form container width */
        margin: 0 auto;
        border-top: 1px solid #dee2e6;
        border-radius: 0;
        z-index: 100;
    }
    /* END: Sticky Footer for Mobile */
}
