

/* ==============================
   IMAGE-ONLY TOP BANNER
   ============================== */

.appointment-image-banner {
    width: 100%;
    margin-top: 0;
}

.appointment-image-banner img {
    width: 100%;
    height: auto;
    display: block;
    /*max-height: 420px;      */
    object-fit: scale-down;     /* keeps it clean on all screens */
}

@media (max-width: 768px) {
    .appointment-image-banner img {
        max-height: 260px;
    }
}

/* ==============================
   APPOINTMENT PAGE – ISOLATED CSS
   ============================== */

.appointment-container {
    max-width: 1200px;
    margin: 80px auto;
    display: flex;
    gap: 40px;
    padding: 20px;
    box-sizing: border-box;
}


/* LEFT SECTION */
.appointment-left {
    flex: 1;
}

.appointment-badge {
    display: inline-block;
    background: #eaf3ff;
    color: #0056d2;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.appointment-heading {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #111;
}

.appointment-description {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    max-width: 480px;
}

.appointment-call-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.appointment-call-btn {
    background: #0056d2;
    color: #fff;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.appointment-phone {
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

/* RIGHT FORM SECTION */
.appointment-right {
    flex: 1;
    background: #ffffff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.appointment-form-title {
    font-size: 26px;
    margin-bottom: 8px;
    color: #111;
}

.appointment-form-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
}

.appointment-form {
    display: flex;
    flex-direction: column;
}

.appointment-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.appointment-input {
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 18px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.appointment-input:focus {
    border-color: #0056d2;
    box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.1);
}

/* SUBMIT BUTTON */
.appointment-submit-btn {
    background: #0056d2;
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.appointment-submit-btn:hover {
    background: #003f9e;
}

/* ==============================
   ERROR & SUCCESS MESSAGE STYLING
   ============================== */

/* FORM GROUP */
.form-group {
    margin-bottom: 18px;
}

/* REQUIRED LABEL INDICATOR */
.appointment-label.required::after {
    content: " *";
    color: #d32f2f;
}

/* ERROR INPUT STATE */
.appointment-input.error {
    border: 2px solid #d32f2f;
    background-color: #ffebee;
}

.appointment-input.error:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* ERROR MESSAGE */
.error-message {
    color: #d32f2f;
    font-size: 13px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.error-message::before {
    content: "⚠";
    font-weight: bold;
    font-size: 14px;
}

/* FORM ERRORS (non-field errors) */
.form-errors {
    background-color: #ffebee;
    border: 1px solid #d32f2f;
    border-left: 4px solid #d32f2f;
    color: #b71c1c;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 14px;
}

.form-errors ul {
    margin: 0;
    padding-left: 20px;
}

.form-errors li {
    margin: 4px 0;
}

/* SUCCESS MESSAGE */
.success-message {
    background-color: #e6f4ea;
    color: #1e7e34;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-weight: 600;
    border-left: 4px solid #1e7e34;
    font-size: 14px;
}

/* FORM REQUIRED NOTICE */
.form-required-notice {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    text-align: right;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .appointment-container {
        flex-direction: column;
    }
}
