/* =========================================================
   Custom frontend styles
   Add project-specific frontend styles here.
   ========================================================= */


/* ---------- Gallery: CKEditor description centering ---------- */
.gallery-section-description,
.gallery-section-description p {
    text-align: center;
}


/* ---------- Book Appointment form ---------- */
#apptForm .error-msg {
    display: block;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
    min-height: 18px;
}
#apptForm .is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.15);
}
#apptForm #apptSubmitBtn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}


/* ---------- User Login (OTP) flash ---------- */
.login-flash {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 14px;
    font-size: 0.92rem;
    transition: opacity 0.35s ease;
}
.login-flash--success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.login-flash--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.login-flash--info    { background: #dbeafe; color: #1e3a8a; border: 1px solid #93c5fd; }
.login-flash.is-hiding { opacity: 0; }


/* ---------- Thank You / Appointment Thank You (shared ty-card) ---------- */
.ty-page-body {
    background: url('../img/bg/backdrop-bg.webp');
    color: #0F0F0F;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.ty-card {
    background: #ffffff;
    max-width: 650px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(220, 116, 108, 0.12);
    overflow: hidden;
    text-align: center;
    animation: ty-rise 0.6s ease both;
}

@keyframes ty-rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ty-top {
    background: #DC746C;
    padding: 20px 20px 65px;
    position: relative;
}

.ty-logo {
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.ty-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.ty-check {
    width: 86px;
    height: 86px;
    background: #fff;
    border-radius: 50%;
    margin: -43px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(220, 116, 108, 0.28);
    position: relative;
    z-index: 2;
}
.ty-check svg { width: 44px; height: 44px; }
.ty-check circle { fill: #DC746C; }
.ty-check path {
    stroke: #fff;
    stroke-width: 4;
    fill: none;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: ty-draw 0.5s 0.5s ease forwards;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@keyframes ty-draw { to { stroke-dashoffset: 0; } }

.ty-body { padding: 20px 20px 20px; }
.ty-body h1 {
    font-family: 'OpenSans-Bold';
    font-size: 26px;
    color: #DC746C;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}
.ty-body p {
    color: #0F0F0F;
    font-size: 16px;
    margin-bottom: 0;
}
.ty-body .sub {
    font-size: 16px;
    color: #0F0F0F;
}

.ty-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.ty-actions .btn img {
    filter: brightness(0) invert(1);
    width: 18px;
}
.btn-ghost {
    background: #f3eeec;
    color: var(--accent-dark);
}

.ty-foot {
    border-top: 1px solid #f0eceb;
    padding: 20px;
    font-size: 14px;
    color: #0F0F0F;
}
.ty-foot a {
    color: #DC746C;
    text-decoration: none;
}

.ty-note {
    margin-top: 20px;
    padding: 14px 16px;
    background: #fbeeed;
    border-left: 5px solid #DC746C;
    border-radius: 5px;
    font-size: 14px;
    color: #DC746C;
    text-align: left;
}
.ty-note a {
    color: #DC746C;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 480px) {
    .ty-body { padding: 20px; }
    .ty-body p { font-size: 14px; }
    .ty-actions .btn { width: 100%; justify-content: center; }
}


/* ---------- Join Thank You ---------- */
.form-thank-you-sec { padding: 80px 0; }
.form-thank-you-content-main-sec { text-align: center; }
.form-thank-you-content-main-sec img { width: 200px; margin-bottom: 30px; }
.form-thank-you-content-main-sec p { margin-bottom: 0; }
