/* =====================================================
   ARONYA - İLETİŞİM SIDEBARI
   Marka sayfasında sağ tarafta sticky olarak durur:
   - Üstte: "Ürün Danışmanına Sor" kartı (WhatsApp + telefon + e-posta)
   - Altta: "Sizi Arayalım" formu (Contact Form 7 veya fallback)
   ===================================================== */

:root {
    --aronya-contact-bg: #ffffff;
    --aronya-contact-border: #e9eef0;
    --aronya-contact-text: #1a1a2e;
    --aronya-contact-muted: #5a6573;
    --aronya-whatsapp: #25D366;
    --aronya-whatsapp-dark: #1ebe5a;
}

/* ========== ANA LAYOUT (sidebar) ========== */
.contact-sidebar {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 24px;
    align-self: flex-start;
}

/* ========== ORTAK KART ========== */
.contact-card {
    background: var(--aronya-contact-bg);
    border: 1px solid var(--aronya-contact-border);
    border-radius: 16px;
    padding: 24px 22px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.contact-card__icon {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #26BECF 0%, #3FB892 100%);
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(38, 190, 207, 0.25);
}

.contact-card__title {
    margin: 0 0 8px;
    color: var(--aronya-contact-text);
    font-size: 19px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.3px;
    /* icon için sağdan boşluk */
    padding-right: 52px;
}

.contact-card__desc {
    margin: 0 0 18px;
    color: var(--aronya-contact-muted);
    font-size: 14px;
    line-height: 1.55;
}

/* ========== DANIŞMAN KARTI ========== */
.contact-card--consultant {
    background: linear-gradient(160deg, #ffffff 0%, #f5fafa 100%);
}

.contact-card--consultant .contact-card__title {
    color: var(--aronya-contact-text);
}

.contact-card__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, color 200ms ease;
    border: 1.5px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-btn svg {
    flex-shrink: 0;
}

.contact-btn:hover,
.contact-btn:focus {
    transform: translateY(-2px);
}

/* WhatsApp — yeşil */
.contact-btn--whatsapp {
    background: var(--aronya-whatsapp);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.28);
}
.contact-btn--whatsapp:hover,
.contact-btn--whatsapp:focus {
    background: var(--aronya-whatsapp-dark);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.4);
}

/* Telefon — turkuaz dolu */
.contact-btn--phone {
    background: var(--aronya-contact-text);
    color: #ffffff;
}
.contact-btn--phone:hover,
.contact-btn--phone:focus {
    background: #2a2a45;
    color: #ffffff;
}

/* E-posta — çerçeveli */
.contact-btn--email {
    background: transparent;
    color: var(--aronya-contact-text);
    border-color: var(--aronya-contact-border);
}
.contact-btn--email:hover,
.contact-btn--email:focus {
    background: #f5fafa;
    border-color: var(--aronya-whatsapp);
    color: var(--aronya-whatsapp);
}

/* ========== FORM KARTI ========== */
.contact-card--form {
    /* İkon göstermek istemiyoruz */
}

/* ========== DEFAULT FALLBACK FORM ========== */
.aronya-call-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.aronya-call-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aronya-call-form__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--aronya-contact-text);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.aronya-call-form__input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--aronya-contact-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--aronya-contact-text);
    font-size: 14px;
    line-height: 1.4;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.aronya-call-form__input:focus {
    outline: none;
    border-color: #26BECF;
    box-shadow: 0 0 0 3px rgba(38, 190, 207, 0.12);
}

.aronya-call-form__textarea {
    resize: vertical;
    min-height: 80px;
}

.aronya-call-form__submit {
    margin-top: 4px;
    padding: 14px 20px;
    background: linear-gradient(to top right, #8EB927 7%, #26BECF 31%);
    color: #ffffff;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
    box-shadow: 0 6px 14px rgba(38, 190, 207, 0.28);
}

.aronya-call-form__submit:hover,
.aronya-call-form__submit:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(38, 190, 207, 0.4);
    filter: brightness(1.05);
}

.aronya-call-form__notice {
    margin: 4px 0 0;
    padding: 8px 12px;
    background: #fff8e1;
    border-left: 3px solid #f0b400;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #6b5500;
}

/* ========== CONTACT FORM 7 OVERRIDE ========== */
.contact-form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contact-form .wpcf7-form-control,
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--aronya-contact-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--aronya-contact-text);
    font-size: 14px;
    line-height: 1.4;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.contact-form textarea {
    resize: vertical;
    min-height: 80px;
}

.contact-form .wpcf7-form-control:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #26BECF;
    box-shadow: 0 0 0 3px rgba(38, 190, 207, 0.12);
}

.contact-form label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--aronya-contact-text);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.contact-form p {
    margin: 0;
}

.contact-form input[type="submit"],
.contact-form button[type="submit"],
.contact-form .wpcf7-submit {
    width: 100%;
    margin-top: 4px;
    padding: 14px 20px;
    background: linear-gradient(to top right, #8EB927 7%, #26BECF 31%);
    color: #ffffff;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
    box-shadow: 0 6px 14px rgba(38, 190, 207, 0.28);
}

.contact-form input[type="submit"]:hover,
.contact-form .wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(38, 190, 207, 0.4);
    filter: brightness(1.05);
}

.contact-form .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #d63638;
    margin-top: 4px;
}

.contact-form .wpcf7-response-output {
    margin: 8px 0 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
}

.contact-form .wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.contact-form .wpcf7-validation-errors,
.contact-form .wpcf7-spam-blocked,
.contact-form .wpcf7-mail-sent-ng {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1023px) {
    .contact-sidebar {
        position: static;
        max-width: 100%;
        margin-top: 32px;
    }
}

@media (max-width: 600px) {
    .contact-card {
        padding: 20px 18px;
    }
    .contact-card__title {
        font-size: 17px;
    }
    .contact-btn {
        padding: 11px 14px;
        font-size: 13.5px;
    }
}
