/* ============================================================
   CONTACT SECTION + WHATSAPP BUTTON
   ============================================================ */

/* ── Section layout ─────────────────────── */
.contact-section {
    padding: 7rem 4vw 6rem;
    background: linear-gradient(160deg, var(--clr-bg-mid) 0%, var(--clr-bg) 60%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,156,57,0.08) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    pointer-events: none;
}

.contact-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Two-column layout ──────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

/* ── Form card ──────────────────────────── */
.contact-form-wrap {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,58,55,0.07);
}

/* ── Form rows & groups ─────────────────── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--clr-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font);
    font-size: 0.97rem;
    color: var(--clr-text);
    background: var(--clr-bg);
    border: 1.5px solid rgba(0,58,55,0.18);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    direction: rtl;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(0,58,55,0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23003a37' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
}

/* ── Submit button ──────────────────────── */
.btn-contact-submit {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-mid) 100%);
    color: #fff;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: transform 0.25s var(--ease), box-shadow 0.25s ease, opacity 0.2s ease;
    box-shadow: 0 6px 28px rgba(0,58,55,0.3);
    margin-top: 0.5rem;
}

/* ── Privacy checkbox ───────────────────── */
.form-group-check {
    margin-bottom: 1.1rem;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    user-select: none;
}

.check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: var(--clr-primary);
    cursor: pointer;
    border-radius: 4px;
}

.check-label input[type="checkbox"].error {
    outline: 2px solid #e53935;
    outline-offset: 2px;
}

.privacy-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--clr-primary);
    font-weight: 600;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.privacy-link:hover { color: var(--clr-accent); }

/* ── Privacy Modal ───────────────────────── */
.privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.privacy-modal[hidden] { display: none; }

.privacy-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
}

.privacy-box {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 640px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
    animation: modalIn 0.25s var(--ease);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

.privacy-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,58,55,0.08);
    color: var(--clr-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}
.privacy-close:hover { background: rgba(0,58,55,0.15); }

.privacy-content {
    overflow-y: auto;
    padding: 2rem 2rem 2rem;
    direction: rtl;
}

.privacy-content h2 {
    font-size: 1.5rem;
    color: var(--clr-primary);
    margin-bottom: 0.25rem;
}

.privacy-updated {
    font-size: 0.82rem;
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
}

.privacy-content h3 {
    font-size: 1rem;
    color: var(--clr-primary);
    margin: 1.25rem 0 0.4rem;
}

.privacy-content p,
.privacy-content li {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.7;
}

.privacy-content ul {
    list-style: disc;
    padding-right: 1.25rem;
    margin-top: 0.3rem;
}

.privacy-content a {
    color: var(--clr-primary);
    font-weight: 600;
    text-decoration: underline;
}

.btn-contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(0,58,55,0.38);
}

.btn-contact-submit:active {
    transform: translateY(0);
}

.btn-contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    animation: spin 0.7s linear infinite;
}

.btn-contact-submit.loading .btn-spinner { display: block; }
.btn-contact-submit.loading .btn-text   { opacity: 0.7; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Form note ──────────────────────────── */
.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin-top: 1rem;
}
.form-note a {
    color: var(--clr-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Success state ──────────────────────── */
.form-success {
    text-align: center;
    padding: 3rem 1rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00897b, var(--clr-primary));
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 24px rgba(0,58,55,0.3);
}

.form-success h3 {
    font-size: 1.4rem;
    color: var(--clr-primary);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--clr-text-muted);
}

/* ── Info card ──────────────────────────── */
.contact-info-card {
    background: linear-gradient(150deg, var(--clr-primary) 0%, #005248 100%);
    border-radius: 24px;
    padding: 2rem 1.75rem;
    color: #fff;
    box-shadow: 0 12px 40px rgba(0,58,55,0.25);
}

.contact-info-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    color: var(--clr-accent-light);
}

.contact-reasons {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.contact-reasons li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.reason-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,156,57,0.15);
    color: var(--clr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reason-icon svg {
    width: 20px;
    height: 20px;
}

.contact-reasons li div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.contact-reasons li strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.contact-reasons li span {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.68);
    line-height: 1.4;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.wa-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #25d366;
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.2rem 0.75rem 1rem;
    box-shadow: 0 6px 28px rgba(37,211,102,0.45);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
    white-space: nowrap;
}

.wa-float:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 36px rgba(37,211,102,0.55);
}

.wa-float svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

/* Pulse ring behind button */
.wa-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-pill);
    background: #25d366;
    z-index: -1;
    animation: waPulse 2.4s ease-out infinite;
    opacity: 0;
}

@keyframes waPulse {
    0%   { transform: scale(1);    opacity: 0.6; }
    100% { transform: scale(1.18); opacity: 0; }
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-info {
        order: -1;
    }
    .contact-info-card {
        padding: 1.5rem;
    }
    .contact-reasons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .contact-section {
        padding: 4.5rem 1.25rem 4rem;
    }
    .contact-form-wrap {
        padding: 1.5rem 1.25rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-reasons {
        grid-template-columns: 1fr;
    }
    .wa-float .wa-label {
        display: none;
    }
    .wa-float {
        padding: 0.85rem;
        border-radius: 50%;
        bottom: 20px;
        left: 20px;
    }
    .wa-float svg {
        width: 30px;
        height: 30px;
    }
}
