/**
 * SSP Report a Problem & Contact Us – Front-end styles
 */

/* ─── Report a Problem button (now rendered as a utility pill button) ─── */

/* ─── Modal overlay ─── */
.ssp-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.55);
    align-items: flex-end;
    justify-content: flex-start;
    padding: 22px;
}
.ssp-modal-overlay.ssp-open {
    display: flex;
}

/* ─── Modal card ─── */
.ssp-modal-card {
    background: #0f172a;
    border: 1px solid #1e3a5f;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 16px 48px rgba(0,0,0,.6);
    overflow: hidden;
    animation: sspSlideUp .2s ease;
}
@keyframes sspSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ssp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #00b4b4;
}
.ssp-modal-header h4 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}
.ssp-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.ssp-modal-close:hover { color: #fff; }

.ssp-modal-body { padding: 18px; }

.ssp-modal-page-label {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 12px;
    word-break: break-all;
}

.ssp-modal-body label {
    display: block;
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ssp-modal-body textarea,
.ssp-modal-body input[type="email"] {
    width: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #f1f5f9;
    padding: 9px 11px;
    font-size: 13px;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 12px;
}
.ssp-modal-body textarea:focus,
.ssp-modal-body input[type="email"]:focus {
    outline: none;
    border-color: #3b82f6;
}

.ssp-report-submit-btn {
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.ssp-report-submit-btn:hover   { background: #1d4ed8; }
.ssp-report-submit-btn:disabled { background: #334155; cursor: default; }

.ssp-modal-feedback {
    display: none;
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
}
.ssp-modal-feedback.success { background: #052e16; color: #86efac; }
.ssp-modal-feedback.error   { background: #450a0a; color: #fca5a5; }

/* ─── Contact Us page ─── */

/* Page wrapper */
.ssp-contact-page {
    min-height: 80vh;
    padding-bottom: 80px;
}

/* Hero */
.ssp-contact-hero {
    background: linear-gradient(135deg, #060d18 0%, #0b1e35 50%, #071220 100%);
    border-bottom: 1px solid rgba(0, 180, 180, 0.15);
    padding: 64px 24px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ssp-contact-hero::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 260px;
    background: radial-gradient(ellipse, rgba(0, 188, 188, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.ssp-contact-hero__inner {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.ssp-contact-hero__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #00b4b4;
    background: rgba(0, 180, 180, 0.1);
    border: 1px solid rgba(0, 180, 180, 0.25);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 18px;
}
.ssp-contact-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #f1f5f9;
    margin: 0 0 14px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.ssp-teal { color: #1de1d1; }
.ssp-contact-hero__sub {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Content grid */
.ssp-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 32px;
    max-width: 980px;
    margin: 48px auto 0;
    padding: 0 24px;
    align-items: start;
}
@media (max-width: 720px) {
    .ssp-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Info panel ── */
.ssp-contact-info {
    background: linear-gradient(160deg, #0d1b2a 0%, #0f2136 100%);
    border: 1px solid #1e3a5f;
    border-radius: 14px;
    padding: 28px 24px;
}
.ssp-contact-info__block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}
.ssp-contact-info__icon {
    font-size: 22px;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}
.ssp-contact-info__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 3px;
}
.ssp-contact-info__value {
    font-size: 14px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
}
a.ssp-contact-info__value:hover { color: #1de1d1; }
.ssp-contact-info__divider {
    height: 1px;
    background: #1e3a5f;
    margin: 8px 0 24px;
}
.ssp-contact-info__topics-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 12px;
}
.ssp-contact-info__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ssp-contact-info__list li {
    font-size: 13.5px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ssp-contact-info__check {
    color: #1de1d1;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

/* ── Form card ── */
.ssp-contact-form-card {
    background: #0d1b2a;
    border: 1px solid #1e3a5f;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.ssp-contact-form-card__header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    background: #081422;
    border-bottom: 1px solid #1e3a5f;
}
.ssp-contact-form-card__dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #1e3a5f;
}
.ssp-contact-form-card__dot:nth-child(1) { background: #ef4444; }
.ssp-contact-form-card__dot:nth-child(2) { background: #f59e0b; }
.ssp-contact-form-card__dot:nth-child(3) { background: #22c55e; }
.ssp-contact-form-card__title {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    letter-spacing: .04em;
}
.ssp-contact-form {
    padding: 28px 28px 32px;
}

/* Row layouts */
.ssp-contact-row {
    margin-bottom: 18px;
}
.ssp-contact-row--half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}
@media (max-width: 500px) {
    .ssp-contact-row--half { grid-template-columns: 1fr; }
}
.ssp-contact-field {
    margin-bottom: 18px;
}
.ssp-contact-field label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #64748b;
    margin-bottom: 6px;
}
.ssp-required { color: #ef4444; }
.ssp-contact-field input,
.ssp-contact-field textarea,
.ssp-contact-field select {
    width: 100%;
    background: #060f1a;
    border: 1px solid #1e3a5f;
    border-radius: 8px;
    color: #e2e8f0;
    padding: 11px 14px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
    -webkit-appearance: none;
}
.ssp-contact-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
.ssp-contact-field select option {
    background: #0d1b2a;
    color: #e2e8f0;
}
.ssp-contact-field input::placeholder,
.ssp-contact-field textarea::placeholder { color: #334155; }
.ssp-contact-field input:focus,
.ssp-contact-field textarea:focus,
.ssp-contact-field select:focus {
    outline: none;
    border-color: #00b4b4;
    box-shadow: 0 0 0 3px rgba(0, 180, 180, 0.12);
}
.ssp-contact-field textarea { resize: vertical; min-height: 140px; }

/* Submit button */
.ssp-contact-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #00b4b4 0%, #0096a0 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    letter-spacing: .02em;
    margin-top: 4px;
}
.ssp-contact-submit-btn__icon { font-size: 13px; }
.ssp-contact-submit-btn:hover   { opacity: .88; transform: translateY(-1px); }
.ssp-contact-submit-btn:active  { transform: translateY(0); }
.ssp-contact-submit-btn:disabled {
    background: #1e3a5f;
    color: #475569;
    cursor: default;
    transform: none;
    opacity: 1;
}

/* Feedback */
.ssp-contact-feedback {
    display: none;
    margin-top: 16px;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    border-left: 3px solid transparent;
}
.ssp-contact-feedback.success {
    background: rgba(5, 46, 22, 0.6);
    border-color: #22c55e;
    color: #86efac;
}
.ssp-contact-feedback.error {
    background: rgba(69, 10, 10, 0.6);
    border-color: #ef4444;
    color: #fca5a5;
}
