﻿/* =========================================================
   KAILASH EYE HOSPITAL - APPOINTMENT PAGE
   ========================================================= */

:root {
    --appointment-primary: #1f71b6;
    --appointment-primary-dark: #155a91;
    --appointment-secondary: #25a6a6;
    --appointment-text: #333;
    --appointment-muted: #6b7280;
    --appointment-border: #e1e7ed;
    --appointment-bg: #f5f9fc;
    --appointment-white: #ffffff;
}


/* Main Appointment Area */
.landing-page {
    width: 100% !important;
    padding: 20px 15px 60px;
    /* background: var(--appointment-bg); */
}

.form-appointment {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* Page Heading */
.heads {
    margin: 0;
    background: #d6efff26;
}

h3.heads {
    position: relative;
    padding: 35px 15px 20px;
    margin: 0;
    color: var(--appointment-primary-dark);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

    h3.heads::after {
        content: "";
        display: block;
        width: 55px;
        height: 3px;
        margin: 14px auto 0;
        background: var(--appointment-secondary);
        border-radius: 10px;
    }


/* Form Box */
.wpcf7-form {
    position: relative;
    background: var(--appointment-white);
    max-width: 1050px;
    margin: 0 auto;
    padding: 35px 35px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(31, 113, 182, 0.10);
    border: 1px solid #edf1f5;
}


    /* Form Group */
    .wpcf7-form .group {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -10px;
    }

        .wpcf7-form .group > .col-md-6 {
            padding: 0 15px;
        }


/* Section Titles */
.form-appointment h4 {
    margin: 0 0 14px;
    color: #244b68;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}


/* Input Wrapper */
.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}


/* Inputs */
.form-appointment input[type="text"],
.form-appointment input[type="email"],
.form-appointment input[type="tel"],
.form-appointment input[type="date"],
.form-appointment input[type="time"],
.form-appointment select {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    background: #fff;
    border: 1px solid var(--appointment-border);
    border-radius: 6px;
    color: #333;
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}


.form-appointment select {
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    background: #fff;
    color: #333;
}

    /* Dropdown options */
    .form-appointment select option {
        background: #fff !important;
        color: #333 !important;
    }

        /* Selected option */
        .form-appointment select option:checked {
            background: #fff !important;
            color: #333 !important;
        }


    /* Focus */
    .form-appointment input:focus,
    .form-appointment select:focus {
        border-color: var(--appointment-primary);
        box-shadow: 0 0 0 3px rgba(31, 113, 182, 0.10);
    }


/* Date & Time */
.form-appointment input[type="date"],
.form-appointment input[type="time"] {
    cursor: pointer;
}


/* Radio Section */
.wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.wpcf7-list-item {
    margin: 0 !important;
}


    /* Radio Labels */
    .wpcf7-list-item label {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        margin: 0;
        padding: 8px 13px;
        background: #f7fafc;
        border: 1px solid #e4eaf0;
        border-radius: 5px;
        color: #4b5563;
        font-size: 14px;
        font-weight: 400;
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .wpcf7-list-item label:hover {
            border-color: var(--appointment-primary);
            color: var(--appointment-primary);
            background: #f4f9fd;
        }


    /* Radio Buttons */
    .wpcf7-list-item input[type="radio"] {
        width: 15px;
        height: 15px;
        margin: 0;
        accent-color: var(--appointment-primary);
        cursor: pointer;
    }


/* Bottom Submit Area */
.wpcf7-form > div:last-of-type {
    border-top: 1px solid #e7edf2 !important;
    margin-top: 30px !important;
    padding-top: 25px !important;
    text-align: center !important;
}



/* Ajax Loader */
.ajax-loader {
    margin-left: 10px;
    vertical-align: middle;
}


/* Response Message */
.wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 12px 15px !important;
    border-radius: 5px;
    font-size: 14px;
}


/* Remove unwanted Bootstrap column spacing */
.form-appointment .col-md-6,
.form-appointment .col-md-12 {
    box-sizing: border-box;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    h3.heads {
        font-size: 28px;
        padding-top: 30px;
    }

    .wpcf7-form {
        padding: 30px 25px;
    }

        .wpcf7-form .group > .col-md-6 {
            width: 100%;
            margin-bottom: 20px;
        }

    .wpcf7-checkbox {
        gap: 8px 12px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .landing-page {
        padding: 10px 10px 40px;
    }

    h3.heads {
        font-size: 24px;
        padding: 25px 10px 15px;
    }

        h3.heads::after {
            width: 45px;
            margin-top: 10px;
        }

    .wpcf7-form {
        padding: 22px 18px;
        border-radius: 8px;
    }

    .form-appointment h4 {
        font-size: 16px;
        margin-bottom: 11px;
    }

    .form-appointment input[type="text"],
    .form-appointment input[type="email"],
    .form-appointment input[type="tel"],
    .form-appointment input[type="date"],
    .form-appointment input[type="time"],
    .form-appointment select {
        height: 46px;
        font-size: 14px;
    }

    .wpcf7-form .group {
        margin: 0;
    }

        .wpcf7-form .group > .col-md-6 {
            padding: 0;
        }

    .wpcf7-checkbox {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .wpcf7-list-item {
        width: 100%;
    }

        .wpcf7-list-item label {
            width: 100%;
            box-sizing: border-box;
            padding: 9px 12px;
        }

    .rqstsubmit,
    .wpcf7-submit {
        width: 100%;
        min-width: 0;
        height: 47px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    h3.heads {
        font-size: 22px;
    }

    .wpcf7-form {
        padding: 18px 14px;
    }

    .form-appointment input[type="text"],
    .form-appointment input[type="email"],
    .form-appointment input[type="tel"],
    .form-appointment input[type="date"],
    .form-appointment input[type="time"],
    .form-appointment select {
        height: 44px;
        padding: 0 12px;
    }
}

.rqstsubmit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 230px;
    height: 52px;
    padding: 0 32px;
    background-color: #0085d0 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
}

    /* Hover */
    .rqstsubmit:hover,
    .rqstsubmit:focus,
    .rqstsubmit:active {
        background-color: #0073b8 !important;
        color: #ffffff !important;
        border-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }

/* Agar kisi theme ki white background/text rule aa rahi ho */
.form-appointment .rqstsubmit:hover {
    background-color: #0073b8 !important;
    color: #ffffff !important;
}

/* Mobile */
@media (max-width: 767px) {
    .rqstsubmit {
        width: 100%;
        min-width: 0;
        height: 50px;
        font-size: 14px;
    }
}
