/* ============================================
   CONTACT PAGE
   ============================================ */

/* Make main a flex column so the contact container can fill all remaining space */
main {
    display: flex;
    flex-direction: column;
}

.main-contact-container {
    flex: 1;
    background: linear-gradient(160deg, #f9f5f1 0%, #ede8e2 100%);
    padding: 0 0 64px;
}

/* Page heading */
.contact-page-heading {
    text-align: center;
    padding: 3.5rem 0 2.5rem;
}

.contact-page-heading h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #1a110d;
    line-height: 1.2;
    margin-bottom: 0.55rem;
}

.contact-page-subheading {
    color: #7b6355;
    font-size: 1.05rem;
    margin-bottom: 0;
    letter-spacing: 0.01em;
}

/* Main card shell */
.contact-shell {
    background: #ffffff;
    border: 1px solid #e0d5cc;
    border-radius: 24px;
    box-shadow: 0 20px 56px rgba(58, 39, 28, 0.10);
    overflow: hidden;
}

/* ---- Left info column ---- */
.contact-info-col {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: #faf6f3;
    border-right: 1px solid #ede5de;
}

.contact-info-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 1.8rem;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.13));
}

.contact-lead {
    color: #5a4940;
    line-height: 1.75;
    font-size: 0.95rem;
    margin-bottom: 1.6rem;
    max-width: 48ch;
}

/* Contact detail cards */
.contact-detail-cards {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 0;
}

.contact-detail-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 13px;
    background: #ffffff;
    border: 1px solid #e4dbd4;
    border-radius: 12px;
    text-decoration: none;
    color: #1f2a37;
    transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.contact-detail-card:hover {
    background: #f5eeea;
    border-color: #5b2328;
    transform: translateX(5px);
    box-shadow: 0 4px 14px rgba(91, 35, 40, 0.10);
    color: #1f2a37;
}

.cdc-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #5b2328;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.cdc-text {
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
}

/* Social icons in contact page */
.contact-info-col .footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.contact-info-col .footer-social-links li {
    display: inline-block;
}

.contact-info-col .footer-social-links li a {
    color: #1f2a37;
    background: #ffffff;
    border: 1px solid #e0d5cc;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
    text-decoration: none;
    font-size: 15px;
}

.contact-info-col .footer-social-links li a:hover {
    color: #fff;
    background: #5b2328;
    border-color: #5b2328;
    transform: translateY(-2px);
}

/* ---- Right form column ---- */
.contact-form-col {
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.contact-form-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.85rem;
    color: #1a110d;
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ede5de;
}

/* Form inputs */
.contact-form-ajax-contact input,
.contact-form-ajax-contact textarea {
    border: 1px solid #d5c9c0;
    border-radius: 11px;
    background-color: #fdfaf8;
    padding: 0.7rem 1rem;
    font-size: 0.97rem;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.contact-form-ajax-contact input:hover,
.contact-form-ajax-contact textarea:hover {
    background-color: #f5eeea;
}

.contact-form-ajax-contact input:focus,
.contact-form-ajax-contact textarea:focus {
    box-shadow: 0 0 0 3px rgba(91, 35, 40, 0.12);
    border-color: #5b2328;
    background-color: #fff;
    outline: none;
}

/* Submit button */
.contact-form-ajax-contact .contact-form-submit-btn {
    background: #5b2328;
    border-color: #5b2328;
    border-radius: 12px;
    padding: 0.75rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}

.contact-form-ajax-contact .contact-form-submit-btn:hover:not(:disabled) {
    background: #3d1618;
    border-color: #3d1618;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(91, 35, 40, 0.28);
}

.contact-form-ajax-contact .contact-form-submit-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.contact-form-ajax-contact .contact-form-submit-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* Inline error messages */
.contact-form-ajax-contact .contact-form-messages {
    border-radius: 11px;
    font-size: 0.93rem;
    margin-bottom: 1rem;
}

/* ---- Inline success state (Seçenek 2) ---- */
.cf-form-hiding {
    opacity: 0;
    transform: translateY(-14px);
    transition: opacity .35s ease, transform .35s ease;
    pointer-events: none;
}

.cf-success {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s ease, transform .5s ease;
}

.cf-success.cf-success-visible {
    opacity: 1;
    transform: translateY(0);
}

.cf-success-icon {
    margin-bottom: 1.4rem;
}

/* SVG animated checkmark */
.cf-checkmark {
    width: 72px;
    height: 72px;
    display: block;
    margin: 0 auto;
}

.cf-checkmark-circle {
    fill: none;
    stroke: #5b2328;
    stroke-width: 2;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
}

.cf-success-visible .cf-checkmark-circle {
    animation: cf-draw-circle .65s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.cf-checkmark-check {
    fill: none;
    stroke: #5b2328;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
}

.cf-success-visible .cf-checkmark-check {
    animation: cf-draw-check .35s cubic-bezier(0.65, 0, 0.45, 1) .6s forwards;
}

@keyframes cf-draw-circle {
    to { stroke-dashoffset: 0; }
}

@keyframes cf-draw-check {
    to { stroke-dashoffset: 0; }
}

.cf-success-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.9rem;
    color: #1a110d;
    margin-bottom: 0.5rem;
}

.cf-success-text {
    color: #5a4940;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 40ch;
    margin: 0 auto 1.6rem;
}

.cf-success-reset {
    background: none;
    border: 1.5px solid #5b2328;
    color: #5b2328;
    border-radius: 10px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background .2s ease, color .2s ease;
    cursor: pointer;
}

.cf-success-reset:hover {
    background: #5b2328;
    color: #fff;
}

/* ---- Honeypot trap field — visible to bots, hidden from humans ---- */
/* Do NOT use display:none — JS-aware bots skip such fields intentionally */
.contact-hp-trap {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ---- Cloudflare Turnstile widget ---- */
.contact-turnstile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

/* Constrain the widget to avoid overflow on narrow containers */
.contact-turnstile-wrapper .cf-turnstile {
    max-width: 100%;
}

.contact-turnstile-msg {
    font-size: 0.87rem;
    line-height: 1.5;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    margin-top: 0.25rem;
}

.contact-turnstile-msg.turnstile-msg-error {
    color: #8b1a1a;
    background: #fdf0f0;
    border: 1px solid #f5c6c6;
}

.contact-turnstile-msg.turnstile-msg-info {
    color: #5a4940;
    background: #f9f5f1;
    border: 1px solid #e0d5cc;
}

@media (max-width: 479px) {
    .contact-turnstile-wrapper {
        align-items: stretch;
    }
    .contact-turnstile-wrapper .cf-turnstile {
        transform-origin: left top;
    }
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .contact-info-col {
        border-right: none;
        border-bottom: 1px solid #ede5de;
    }

    .contact-info-img {
        max-width: 250px;
    }
}

@media (max-width: 575px) {
    .main-contact-container {
        padding: 0 0 40px;
    }

    .contact-page-heading {
        padding: 2.2rem 0 1.8rem;
    }

    .contact-page-heading h1 {
        font-size: 1.7rem;
    }

    .contact-shell {
        border-radius: 16px;
    }

    .contact-info-img {
        max-width: 110px;
        margin-bottom: 1rem;
    }

    .contact-lead {
        font-size: 0.88rem;
        margin-bottom: 1.1rem;
    }

    .contact-form-col {
        padding-top: 1.2rem;
    }

    .contact-form-heading {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
}

/* Footer margin override - only on contact page (this CSS loads only here) */
.site-footer {
    margin-top: 0;
}
