﻿/*=========================================================
    MY JOY SPECIALITY DENTAL CLINIC
    APPOINTMENT PAGE STYLES
=========================================================*/


/* -------------------------------------------------------
   PAGE SECTION
------------------------------------------------------- */

.appointment-section {
    background: #f0f4f8;
    padding: 80px 0 100px;
}


/* -------------------------------------------------------
   WRAPPER — left info panel + right form
------------------------------------------------------- */

.appointment-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 36px;
    align-items: start;
}


/* -------------------------------------------------------
   LEFT PANEL — clinic info
------------------------------------------------------- */

.appointment-info {
    background: linear-gradient(160deg, #0d47a1 0%, #1565c0 50%, #1e88e5 100%);
    padding: 48px 40px;
    border-radius: 22px;
    box-shadow: 0 16px 48px rgba(13,71,161,.3);
    color: #fff;
    position: sticky;
    top: 100px;
}

.appointment-info h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.appointment-info > p {
    color: rgba(255,255,255,.8);
    font-size: .95rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

/* Feature list */
.appointment-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.appointment-info ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .93rem;
    font-weight: 500;
    color: rgba(255,255,255,.92);
}

/* Replace ✔ text with a styled circle check */
.appointment-info ul li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,.35);
}

/* Hide the ✔ that's already in the HTML — our ::before handles it */
.appointment-info ul li {
    text-indent: 0;
}

/* Emergency contact box */
.appointment-contact {
    margin-top: 0;
    padding: 22px 24px;
    background: rgba(255,255,255,.12);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(4px);
}

.appointment-contact h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.appointment-contact p {
    color: rgba(255,255,255,.75);
    font-size: .85rem;
    margin-bottom: 10px;
}

.appointment-contact a {
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .3px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity .18s;
}

.appointment-contact a:hover {
    opacity: .8;
}

.appointment-contact a::before {
    content: "📞";
    font-size: 1rem;
}


/* -------------------------------------------------------
   RIGHT PANEL — form card
------------------------------------------------------- */

.appointment-form-box {
    background: #ffffff;
    padding: 48px 44px;
    border-radius: 22px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07), 0 1px 6px rgba(0,0,0,.04);
    border: 1px solid #e5eaf0;
}

.appointment-form-box h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.4px;
}

/* Subtitle under form heading */
.appointment-form-box h2::after {
    content: "Fill in the details below and we will confirm your slot.";
    display: block;
    font-size: .88rem;
    font-weight: 400;
    color: #9ca3af;
    margin-top: 6px;
    letter-spacing: 0;
}

/* Divider under heading */
.appointment-form-box form {
    margin-top: 28px;
}


/* -------------------------------------------------------
   FORM ROWS
------------------------------------------------------- */

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 0;
}


/* -------------------------------------------------------
   FORM GROUPS
------------------------------------------------------- */

.appointment-form-box .form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.appointment-form-box .form-group label {
    font-size: .8rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .6px;
}


/* -------------------------------------------------------
   INPUTS — modern clean style
------------------------------------------------------- */

.appointment-form-box .form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: .92rem;
    font-family: inherit;
    color: #1f2937;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}

.appointment-form-box .form-control:focus {
    border-color: var(--primary, #1e88e5);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(30,136,229,.1);
}

.appointment-form-box .form-control::placeholder {
    color: #cbd5e1;
}

/* Select arrow */
select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
    background-color: #f8fafc;
}

/* Textarea */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}


/* -------------------------------------------------------
   SUBMIT BUTTON
------------------------------------------------------- */

.appointment-form-box .btn-primary {
    width: 100%;
    padding: 15px 24px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    border-radius: 14px;
    letter-spacing: .3px;
    margin-top: 8px;
    transition: background .22s, transform .22s, box-shadow .22s;
    box-shadow: 0 4px 16px rgba(30,136,229,.28);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.appointment-form-box .btn-primary::after {
    content: "→";
    font-size: 1.1rem;
    transition: transform .2s;
}

.appointment-form-box .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(30,136,229,.38);
}

.appointment-form-box .btn-primary:hover::after {
    transform: translateX(4px);
}


/* -------------------------------------------------------
   RESPONSIVE
------------------------------------------------------- */

@media (max-width: 1050px) {
    .appointment-wrapper {
        grid-template-columns: 1fr;
    }
    .appointment-info {
        position: static;
    }
}

@media (max-width: 700px) {
    .appointment-section {
        padding: 60px 0 70px;
    }
    .appointment-info {
        padding: 34px 28px;
    }
    .appointment-form-box {
        padding: 32px 24px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .appointment-info h2 {
        font-size: 1.4rem;
    }
    .appointment-form-box h2 {
        font-size: 1.4rem;
    }
}
