/* =============================================================================
   Keybet.io - Contact & Support Page Stylesheet (Fully Responsive)
   ============================================================================= */

#support.page,
#support.page *,
#support.page *::before,
#support.page *::after {
    box-sizing: border-box;
}

#support.page {
    max-width: 1220px;
    margin: 0 auto;
    padding: 30px 28px 60px;
    width: 100%;
    overflow-x: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Page Title Header ────────────────────────────────────────────────────── */
#support .page-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
    width: 100%;
}

#support .page-title > div {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

#support .page-title small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

/* ── Main Layout Grid ─────────────────────────────────────────────────────── */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 24px;
    align-items: stretch;
    margin-top: 14px;
    width: 100%;
}

/* ── Left Informational Card ──────────────────────────────────────────────── */
.support-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.support-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(245, 189, 50, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.support-card .support-icon {
    width: 56px;
    height: 56px;
    border: 1px solid rgba(245, 189, 50, 0.35);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(245, 189, 50, 0.18) 0%, rgba(245, 189, 50, 0.05) 100%);
    color: var(--gold);
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.support-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #fff;
    letter-spacing: 0.5px;
}

.support-card p {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.support-card strong,
.support-card .support-email {
    color: var(--gold);
    font-size: 15px;
    font-weight: 700;
    word-break: break-all;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 189, 50, 0.1);
    border: 1px solid rgba(245, 189, 50, 0.3);
    border-radius: 8px;
    padding: 10px 16px;
    width: fit-content;
    max-width: 100%;
}

.support-card .support-email::before {
    content: "\f0e0";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
}

.support-card .support-email:hover {
    background: rgba(245, 189, 50, 0.2);
    border-color: var(--gold);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 189, 50, 0.2);
}

/* ── Right Contact Form Card ──────────────────────────────────────────────── */
.contact {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 32px 28px;
    display: grid;
    gap: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    height: 100%;
    align-content: start;
    width: 100%;
}

.contact h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #fff;
    letter-spacing: 0.5px;
}

.contact input,
.contact textarea {
    background: #070d11;
    border: 1px solid var(--line);
    color: #fff;
    padding: 13px 15px;
    border-radius: 9px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    font-family: inherit;
}

.contact input:focus,
.contact textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245, 189, 50, 0.15);
}

.contact .two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.contact textarea {
    min-height: 130px;
    resize: vertical;
}

.contact .btn.gold {
    padding: 13px 24px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #ffd65d 0%, #e9aa20 100%);
    color: #0a0d0f;
    transition: filter 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    width: 100%;
}

.contact .btn.gold:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.contact .btn.gold:active {
    transform: translateY(0);
}

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.alert-msg {
    padding: 12px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    word-break: break-word;
    width: 100%;
}

.alert-msg.success {
    background: rgba(67, 226, 93, 0.12);
    border: 1px solid rgba(67, 226, 93, 0.35);
    color: #43e25d;
}

.alert-msg.info {
    background: rgba(245, 189, 50, 0.12);
    border: 1px solid rgba(245, 189, 50, 0.35);
    color: var(--gold);
}

/* =============================================================================
   RESPONSIVE MEDIA QUERIES (Mobile & Tablet Optimization)
   ============================================================================= */

/* ── 1. Tablets and Small Laptops (<= 900px) ──────────────────────────────── */
@media (max-width: 900px) {
    .support-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .support-card {
        height: auto;
        padding: 26px 24px;
    }

    .contact {
        height: auto;
        padding: 26px 24px;
    }
}

/* ── 2. Standard Mobile Devices (<= 768px) ────────────────────────────────── */
@media (max-width: 768px) {
    #support.page {
        padding: 20px 16px 44px;
    }

    #support .page-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 18px;
    }

    #support .page-title > div {
        font-size: 21px;
    }

    .support-grid {
        margin-top: 10px;
        gap: 16px;
    }

    .support-card,
    .contact {
        padding: 22px 18px;
        border-radius: 12px;
    }

    /* iOS Safari Auto-Zoom Prevention */
    .contact input,
    .contact textarea {
        font-size: 16px !important;
        padding: 12px 14px;
    }

    .support-card .support-email {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 15px;
    }

    .contact .btn.gold {
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 10px;
    }
}

/* ── 3. Narrow Phones (<= 560px) ─────────────────────────────────────────── */
@media (max-width: 560px) {
    .contact .two {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact textarea {
        min-height: 110px;
    }
}

/* ── 4. Compact Mobile Viewports (<= 380px) ───────────────────────────────── */
@media (max-width: 380px) {
    #support.page {
        padding: 16px 10px 36px;
    }

    #support .page-title > div {
        font-size: 19px;
    }

    .support-card,
    .contact {
        padding: 18px 14px;
        border-radius: 10px;
    }

    .support-card .support-icon {
        width: 44px;
        height: 44px;
        font-size: 19px;
        border-radius: 10px;
        margin-bottom: 14px;
    }

    .support-card h3,
    .contact h3 {
        font-size: 16px;
    }

    .support-card p {
        font-size: 12px;
        margin-bottom: 14px;
    }

    .support-card .support-email {
        font-size: 14px;
        padding: 11px 12px;
    }

    .contact .btn.gold {
        font-size: 14px;
        padding: 13px 16px;
    }
}