/* ========================================
   CONTACT PAGE
   Hero, contact cards, form, meta info,
   type selector, seller messaging
   ======================================== */

.contact-hero {
    padding: 140px 0 80px;
    text-align: center;
    background: radial-gradient(circle at top left, rgba(255, 140, 0, 0.18), transparent 55%),
                linear-gradient(145deg, #0a0a0a 0%, #1a1a1a 100%);
}
.contact-hero h1 {
    font-size: 52px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.contact-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 680px;
    margin: 0 auto 24px;
}
.contact-layout {
    align-items: flex-start;
}
.contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
}
.contact-card h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 12px;
}
.contact-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}
.contact-card a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}
.contact-card a:hover {
    text-decoration: underline;
}
.contact-form-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 32px;
}
.contact-form-card h2 {
    color: white;
    margin-bottom: 12px;
}
.contact-form-card > p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
.form-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 12px;
}
.contact-form-card .form-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}
.contact-form-card .form-check input {
    margin-top: 2px;
    accent-color: #ff8c00;
}
/* Section header overrides */
.contact-section-header {
    text-align: left;
    margin-bottom: 32px;
}
.contact-section-title {
    color: white;
}
.contact-section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
}
.contact-meta {
    margin-top: 24px;
    display: grid;
    gap: 16px;
}
.contact-meta div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}
.contact-meta strong {
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ========================================
   CONTACT TYPE SELECTOR
   Two option cards: Angosa vs Seller
   ======================================== */

.contact-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-type-card {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
}

.contact-type-card:hover {
    border-color: rgba(255, 140, 0, 0.4);
}

.contact-type-card.active {
    border-color: #ff8c00;
    background: rgba(255, 140, 0, 0.08);
}

.contact-type-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
}

.contact-type-icon svg {
    width: 48px;
    height: 48px;
}

.contact-type-card h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-type-card p {
    font-size: 14px;
    margin: 0;
}

/* ========================================
   SELLER CONTACT FORM
   ======================================== */

.seller-contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.seller-form-card {
    margin-bottom: 24px;
}

.form-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.form-error {
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #fca5a5;
    font-size: 14px;
    margin-bottom: 16px;
}

.form-success {
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    color: #86efac;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ========================================
   CONVERSATION THREAD (buyer view)
   ======================================== */

.conversation-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.conversation-header h2 {
    margin: 0;
}

.conversation-order-badge {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 12px;
    border-radius: 9999px;
}

.message-thread {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
}

.message-buyer {
    background: rgba(99, 91, 255, 0.15);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message-seller {
    background: rgba(0, 212, 170, 0.15);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.message-body {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.message-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.reply-input-group {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.reply-textarea {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    resize: none;
}

.reply-btn {
    white-space: nowrap;
    height: 44px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 36px;
    }

    .contact-type-selector {
        grid-template-columns: 1fr;
    }

    .message-bubble {
        max-width: 95%;
    }

    .contact-form-card {
        padding: 24px;
    }
}
