.min-vh-100 {
    min-height: 100vh;
}

.login-card {
    max-width: 650px;
    /* Adjusted max-width to match image better */
    width: 100%;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Subtle shadow */
    border-radius: 0.75rem;
    /* More rounded corners */
    position: relative;
    /* Needed for absolute positioning of wrapper */
    overflow: hidden;
    /* Ensures content outside the current step is hidden */
    /* No fixed height here, it will adjust to content */
    height: auto;
}

/* Animation Container */
.form-steps-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    /* Crucial: height adjusts to content */
    transition: height 0.5s ease-in-out;
    /* Smooth height transition */
}

.form-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 0;
    pointer-events: none;
    /* Prevents interaction when hidden */
    /* Ensure initial state for step 2 is off-screen and hidden */
    transform: translateX(100%);
}

.form-step.active {
    opacity: 1;
    pointer-events: auto;
    /* Allows interaction when active */
    transform: translateX(0%);
    position: static;
    /* Allow active step to dictate height */
}

/* When transitioning, temporarily make them absolute again */
.form-step.moving-out {
    position: absolute;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

.form-step.moving-in {
    position: absolute;
    transform: translateX(0%);
    opacity: 1;
    pointer-events: auto;
}

.card-body {
    padding: 3rem !important;
    /* Increased padding inside the card */
}

.card-title {
    font-size: 1.8rem;
    color: #333;
    line-height: 1.2;
}

.card-text {
    font-size: 0.95rem;
    color: #6c757d;
    /* Muted text color */
}

.form-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
    /* Space below label */
}

.form-control,
.form-select,
textarea.form-control {
    border-radius: 0.5rem;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    /* Increased padding for taller inputs */
    height: auto;
    /* Allow height to adjust with padding */
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: #f9a825;
    box-shadow: 0 0 0 0.25rem rgba(249, 168, 37, 0.25);
}

.forgot-password-link,
.signup-link {
    color: #f9a825;
    /* Custom orange color */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    /* Slightly smaller font for links */
}

.forgot-password-link:hover,
.signup-link:hover {
    text-decoration: underline;
}

.btn-custom {
    background-color: #f9a825;
    /* Custom orange color */
    border-color: #f9a825;
    color: black;
    font-weight: 500;
    border-radius: 2.5rem;
    padding: 0.75rem 2.5rem;
    /* Increased padding for taller button */
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out !important;
    /* display: flex; */
    /* Use flexbox for button content */
    align-items: center;
    justify-content: center;
    /* Center content horizontally */
    font-size: 18px;
}

.card button {
    display: block;
    align-items: center;
    gap: 0.5rem;
    /* font-size: 0.875rem; */
    font-weight: 500;
    color: black;
    background: #e0951f;
    border: none;
    margin-top: 2rem;
    cursor: pointer;
    transition: color 0.15s ease-out !important;
    text-align: center;
}

.card {
    flex: none;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.btn-custom {
    background-color: #EFA63E;
    /* Custom orange color */
    border-color: #EFA63E;
    color: black;
    font-weight: 600;
    border-radius: 2.5rem;
    /* padding: 0.75rem 1rem; */
    /* Increased padding for taller button */
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out !important;
}

.btn-custom:hover {
    background-color: #e0951f;
    /* Slightly darker orange on hover */
    border-color: #e0951f;
    color: white !important;
}

.btn-custom i {
    color: black;
    /* Ensure arrow icon is white */
    font-weight: 700;
    font-size: 15px;
}

.btn-custom:hover i {
    color: white;
}


.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon img {
    opacity: 1;
}

footer {
    background-color: #000;
    /* Solid black background for footer */
    color: white;
    font-size: 0.85rem;
}

.footer-text p {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #8F8F8F;
    font-size: 16px;
    margin-bottom: 1px;
}

/* Back button styling */
.back-link {
    color: black;
    /* Muted text color */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
}

.back-link:hover {
    text-decoration: none;
    color: #333;
}

.back-link i {
    color: black;
    /* Ensure icon color matches text */
}

/* Thank You Step Styles */
#formStep3 .card-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

#formStep3 .card-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

header {
    /* position: relative; */
    top: 0;
    left: 0;
    z-index: 50;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 1rem;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
}

.canvas-container {
    position: absolute;
    /* Already set */
    z-index: 0;
    /* Ensure it stays behind content */
    inset: 0;
    /* height: 54vh;
            clip-path: polygon(0 0, 100% 0, 100% -26%, 0% 64%); */
}

.contact-megamenu {
    width: 550px;
    right: 0px;
    left: -19rem;
    transform: translateY(-10px);
    top: 3rem;
}

.card:hover {
    box-shadow: none;
    scale: none;
}

.nav-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
    position: relative;
    /* margin-right: -5rem; */
}

@media (max-width: 1900px) {

    /* CSS rules for screens 1366px wide and up */
    .hero-content h1 {
        font-size: 6rem;
        /* color: red; */
    }

    .canvas-container {
        height: 75vh !important;
        clip-path: polygon(0 0, 100% 0, 100% 50%, 0% 90%) !important;
    }

    header {
        position: fixed;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1050 !important;
        background: transparent !important;
        transition: all 0.3s ease !important;
    }

    .min-vh-100 {
        min-height: 100vh;
    }
}

@media (min-width: 1500px) and (max-width: 1800px) {
    .header {
        position: sticky;
        top: 0;
        left: 0;
        z-index: 50;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-block: 1rem;
        background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
    }
}

/* Responsive adjustments */
@media (min-width: 1200px) {
    .login-card {
        max-width: 609px;
        padding: 1rem;

    }

    .card-body {
        padding: 1rem !important;
    }

    header {
        position: relative;
        top: 0;
        left: 0;
        z-index: 50;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-block: 1rem;
        background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
    }

    .min-vh-100 {
        min-height: 82vh !important;
    }

}

@media (max-width: 992px) {
    .login-card {
        max-width: 400px;
    }

    .card-body {
        padding: 2rem !important;
    }

    .card-title {
        font-size: 1.6rem;
    }

    header {
        position: sticky;
        top: 0;
        left: 0;
        z-index: 50;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-block: 1rem;
        background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
    }
}

@media (max-width: 768px) {
    .login-card {
        max-width: 100%;
        margin: 0 1rem;
    }

    .card-body {
        padding: 1.75rem !important;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-text {
        font-size: 0.9rem;
    }

    main {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1.5rem !important;
    }

    .card-title {
        font-size: 1.4rem;
    }

    .form-control {
        padding: 0.6rem 0.9rem;
    }

    .btn-custom {
        padding: 0.6rem 0.9rem;
    }
}

/* Ensure the card doesn't get too small on very small devices */
@media (max-width: 400px) {
    .card-body {
        padding: 1.25rem !important;
    }
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    --bs-gutter-x: 0rem;
}

/* Override conflicting card span styles for required field asterisks */
.card .text-danger {
    background-color: transparent !important;
    color: #dc3545 !important;
    font-size: inherit !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: inline !important;
}

/* Or specifically target the asterisk spans */
.card span.text-danger {
    background-color: transparent !important;
    color: #dc3545 !important;
    font-size: 1.2rem !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-weight: bold !important;
    display: inline-block !important;
    line-height: 1 !important;
}

/* Horizontal radio group styles */
.horizontal-radio-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
    row-gap: 0.5rem;
    width: 100%;
}

.horizontal-radio-group .form-check {
    display: flex;
    align-items: center;
    margin: 0;
    width: 100%;
}

.horizontal-radio-group .form-check-input {
    margin-top: 0;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .horizontal-radio-group {
        grid-template-columns: 1fr;
    }
}

/* Optional text styling - grey, italic, underlined */
.optional-text {
    font-size: 0.85rem;
    font-weight: bold !important;
    color: #6c757d !important;
    text-underline-offset: 3px;
    margin-left: 6px;
    background-color: transparent !important;
}

.login-card {
    max-width: 675px;
}

.fa-spinner {
    animation: classySpin 0.8s linear infinite;
    color: #e0951f;
}

@keyframes classySpin {
    from { 
        transform: rotate(0deg);
    }
    to { 
        transform: rotate(360deg);
    }
}

/* Add subtle pulse to text */
@keyframes sendingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.submit-btn-loading {
    animation: sendingPulse 1.2s ease-in-out infinite;
}