/* ========================== Contact Form 7 Styling ========================== */
.wpcf7 .wpcf7-form-control-wrap {
    display: block;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    background-color: var(--neutral-200, #e5e7eb);
    padding: 20px 24px;
    outline: 0;
    border: 1px solid var(--neutral-300, #d1d5db);
    width: 100%;
    transition: border-color 0.3s ease;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    border-color: var(--main, #e53e29);
    outline: none;
}

.wpcf7 textarea {
    height: 180px;
    resize: vertical;
}

.wpcf7 input[type="submit"] {
    background-color: var(--main, #e53e29);
    color: #fff;
    border: none;
    padding: 16px 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    margin-top: 1rem;
}

.wpcf7 input[type="submit"]:hover {
    background-color: var(--main-hover, #c8321f);
    transform: translateY(-2px);
}

.wpcf7 input[type="submit"]:active {
    transform: scale(0.94);
}

/* CF7 validation messages */
.wpcf7-not-valid-tip {
    color: #e53e29;
    font-size: 0.85em;
    margin-top: 4px;
}

.wpcf7-response-output {
    margin: 1rem 0 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 4px;
}

.wpcf7-mail-sent-ok {
    border-color: #28a745 !important;
    color: #28a745;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #28a745;
    color: #28a745;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    border-color: #e53e29;
    color: #e53e29;
}

/* Spinner */
.wpcf7-spinner {
    margin: 12px 0 0 12px;
}

/* ========================== Custom Front Page Appointment Form Styling ========================== */
.form-submit input,
.form-submit textarea {
    color: #ffffff !important;
}

.form-submit select {
    color: #989797 !important;
    background-color: #1F1F1F !important;
}

.form-submit select option {
    background-color: #1F1F1F !important;
    color: #ffffff !important;
}

/* ========================== Appointment Popup Premium Styling ========================== */
#appointment-popup {
    background: #121316; /* Extra premium deep dark background */
    padding: clamp(1.5rem, 5vw, 3rem);
    text-align: left;
    max-width: 750px;
    margin: 40px auto;
    position: relative;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(229, 62, 41, 0.05);
    overflow: hidden;
}

/* Subtle background accent glow */
#appointment-popup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 30%, rgba(229, 62, 41, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

#appointment-popup * {
    position: relative;
    z-index: 1;
}

#appointment-popup .section-heading h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

#appointment-popup input,
#appointment-popup select,
#appointment-popup textarea {
    background-color: #17181c !important;
    border: 1px solid #23252c !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-size: 0.95rem;
    transition: all 0.25s ease-in-out !important;
}

#appointment-popup input::placeholder,
#appointment-popup textarea::placeholder {
    color: #6c757d !important;
    opacity: 0.8;
}

#appointment-popup input:focus,
#appointment-popup select:focus,
#appointment-popup textarea:focus {
    border-color: var(--main, #e53e29) !important;
    box-shadow: 0 0 0 4px rgba(229, 62, 41, 0.15) !important;
    outline: none !important;
    background-color: #1a1c22 !important;
}

/* Custom dropdown styled arrow */
#appointment-popup select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e53e29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-position: right 1.25rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2.5rem !important;
    cursor: pointer;
}

/* Hide the default Magnific Popup close button for appointment popup */
.mfp-wrap .mfp-close {
    display: none !important;
}

/* Custom close button INSIDE the popup box at top right */
.popup-custom-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    font-size: 20px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    z-index: 10 !important;
    transition: all 0.25s ease-in-out !important;
    padding: 0 !important;
}

.popup-custom-close:hover {
    background: var(--main, #e53e29) !important;
    border-color: var(--main, #e53e29) !important;
    color: #ffffff !important;
    transform: rotate(90deg) scale(1.05) !important;
}

/* Fade-in and zoom effects for a premium transition */
.mfp-fade.mfp-bg {
    opacity: 0;
    transition: all 0.3s ease-out;
}
.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.8;
}
.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease-out;
}
.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
    opacity: 1;
    transform: scale(1);
}
.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
    opacity: 0;
    transform: scale(0.9);
}

p.text-dark-light.text-line-1.fw-semibold {
text-align: center;
	width:100%;
}