/*
 * Swiftech Store - contact / support page.
 *
 * Plain stylesheet rather than Vite: node_modules is not installed here.
 * Scoped under .sw-contactpage so nothing else is affected.
 */

.sw-contactpage {
    --c-red: var(--color-primary, #f51e46);
    --c-red-dark: var(--color-primary-darken-10, #d81639);
    --c-red-soft: rgba(245, 30, 70, 0.08);
    --c-ink: #0f1419;
    --c-ink-2: #4a5462;
    --c-ink-3: #6b7280;
    --c-muted: #7b8694;
    --c-line: #e6e9ed;
    --c-line-strong: #cdd3da;
    --c-surface: #fff;
    --c-soft: #f7f8fa;
    /* Brand hues darkened so white text clears WCAG AA:
       #25D366 gives only 1.98:1, #7360F2 only 4.48:1. */
    --c-wa: #0f7a36;
    --c-wa-dark: #0c6a2e;
    --c-viber: #5b48d6;
    --c-viber-dark: #4c3bbd;
    --c-radius: 14px;
    --c-radius-sm: 10px;

    padding: 0 0 56px;
}

.sw-contactpage *,
.sw-contactpage *::before { box-sizing: border-box; }

.sw-contactpage > .container { max-width: 1200px; }

/*======================= Hero =======================*/

.sw-chero {
    padding: 34px 0 30px;
    text-align: center;
}

.sw-chero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    padding: 6px 13px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--c-red);
    background: var(--c-red-soft);
    border-radius: 999px;
}

.sw-chero h1 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--c-ink);
}

.sw-chero p {
    max-width: 62ch;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.65;
    color: var(--c-ink-2);
}

/*======================= Two-column shell =======================*/

.sw-cgrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 24px;
    align-items: start;
}

.sw-card {
    padding: 24px;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--c-radius);
}

.sw-card + .sw-card { margin-top: 20px; }

.sw-card__title {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--c-ink);
}

.sw-card__body {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--c-ink-2);
}

/*======================= Contact methods =======================*/

.sw-cmethods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sw-cmethod {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--c-soft);
    border: 1px solid var(--c-line);
    border-radius: var(--c-radius-sm);
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sw-cmethod:hover,
.sw-cmethod:focus-visible {
    border-color: var(--c-line-strong);
    background: #fff;
}

.sw-cmethod__icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 18px;
    color: var(--c-red);
    background: var(--c-red-soft);
    border-radius: 9px;
}

.sw-cmethod__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.sw-cmethod__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.sw-cmethod__value {
    font-size: 14.5px;
    font-weight: 550;
    color: var(--c-ink);
    overflow-wrap: anywhere;
}

/*======================= Help list =======================*/

.sw-chelp {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sw-chelp li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--c-ink-2);
}

.sw-chelp li > i {
    flex: none;
    margin-top: 2px;
    font-size: 16px;
    color: var(--c-red);
}

/*======================= Form =======================*/

.sw-cform__intro {
    margin: 0 0 18px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--c-ink-3);
}

.sw-cform__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.sw-field { margin-bottom: 16px; }
.sw-field--full { grid-column: 1 / -1; }

.sw-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-ink);
}

.sw-label span[aria-hidden] { color: var(--c-red); }

.sw-label__optional {
    font-weight: 400;
    color: var(--c-ink-3);
}

.sw-input,
.sw-textarea {
    display: block;
    width: 100%;
    padding: 0 13px;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--c-ink);
    background: var(--c-surface);
    border: 1px solid var(--c-line-strong);
    border-radius: var(--c-radius-sm);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.sw-input { height: 46px; }

.sw-textarea {
    min-height: 130px;
    padding: 12px 13px;
    line-height: 1.6;
    resize: vertical;
}

.sw-input::placeholder,
.sw-textarea::placeholder { color: var(--c-muted); }

.sw-input:hover,
.sw-textarea:hover { border-color: #b6bec8; }

.sw-input:focus,
.sw-textarea:focus {
    border-color: var(--c-red);
    box-shadow: 0 0 0 3px var(--c-red-soft);
}

.sw-input:invalid:not(:placeholder-shown),
.sw-textarea:invalid:not(:placeholder-shown) { border-color: #d02440; }

.sw-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--c-ink-3);
}

/*======================= Send buttons =======================*/

.sw-csend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 4px;
}

.sw-cbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 10px 16px;
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border: 0;
    border-radius: var(--c-radius-sm);
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.06s ease, box-shadow 0.15s ease;
}

.sw-cbtn svg { flex: none; }

.sw-cbtn--whatsapp { background: var(--c-wa); }
.sw-cbtn--whatsapp:hover {
    background: var(--c-wa-dark);
    color: #fff;
    box-shadow: 0 8px 20px -12px rgba(15, 122, 54, 0.9);
}

.sw-cbtn--viber { background: var(--c-viber); }
.sw-cbtn--viber:hover {
    background: var(--c-viber-dark);
    color: #fff;
    box-shadow: 0 8px 20px -12px rgba(91, 72, 214, 0.9);
}

.sw-cbtn:active { transform: translateY(1px); }

.sw-cbtn:focus-visible {
    outline: 2px solid var(--c-ink);
    outline-offset: 2px;
}

/*======================= Status message =======================*/

.sw-cstatus {
    margin-top: 14px;
    padding: 11px 13px;
    font-size: 13px;
    line-height: 1.5;
    border-radius: var(--c-radius-sm);
}

.sw-cstatus--error {
    color: #a5182f;
    background: rgba(208, 36, 64, 0.08);
    border: 1px solid rgba(208, 36, 64, 0.25);
}

.sw-cstatus--info {
    color: #3b4a5a;
    background: var(--c-soft);
    border: 1px solid var(--c-line);
}

/*======================= Social =======================*/

.sw-csocial {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--c-line);
}

.sw-csocial a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 18px;
    color: var(--c-ink-2);
    background: var(--c-soft);
    border: 1px solid var(--c-line);
    border-radius: 50%;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.sw-csocial a:hover,
.sw-csocial a:focus-visible {
    color: #fff;
    background: var(--c-red);
    border-color: var(--c-red);
}

.sw-csocial__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-ink);
}

/*======================= Responsive =======================*/

@media (max-width: 991px) {
    .sw-cgrid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .sw-chero h1 { font-size: 28px; }
}

@media (max-width: 767px) {
    .sw-contactpage { padding-bottom: 40px; }
    .sw-chero { padding: 24px 0 22px; text-align: left; }
    .sw-chero h1 { font-size: 24px; }
    .sw-chero p { font-size: 14.5px; }
    .sw-card { padding: 18px; }
    .sw-cform__grid { grid-template-columns: minmax(0, 1fr); }
    .sw-csend { grid-template-columns: minmax(0, 1fr); }
    .sw-cbtn { min-height: 52px; }

    /* iOS Safari zooms the viewport when focusing an input below 16px. */
    .sw-input,
    .sw-textarea { font-size: 16px; }

    .sw-input { height: 48px; }
}

/* Manual-copy fallback, only rendered when the clipboard is unavailable. */
.sw-cfallback { margin-top: 12px; }
.sw-cfallback .sw-textarea { background: var(--c-soft); }

/* ==========================================================================
   DARK THEME (appended 2026-09-05)
   Active only when the root element carries data-theme="dark"; light mode is
   untouched by construction — nothing below applies outside that gate.
   Shared dark palette: surface #181c23, chip #1f242c, border #2a303a,
   strong border #3b424e, ink #e8ebef. WhatsApp/Viber brand hues unchanged.
   ========================================================================== */

[data-theme="dark"] .sw-contactpage {
    --c-ink: #e8ebef;
    --c-ink-2: #a6adb8;
    --c-ink-3: #8a919c;
    --c-muted: #98a2ae;
    --c-line: #2a303a;
    --c-line-strong: #3b424e;
    --c-surface: #181c23;
    --c-soft: #1f242c;
}

/* Hardcoded light-mode hexes that the token redefinitions cannot reach.
   Each selector repeats the light rule's chain so it wins on specificity. */

[data-theme="dark"] .sw-cmethod:hover,
[data-theme="dark"] .sw-cmethod:focus-visible {
    background: #1f242c;
}

[data-theme="dark"] .sw-input:hover,
[data-theme="dark"] .sw-textarea:hover {
    border-color: #4a5158;
}

[data-theme="dark"] .sw-input:invalid:not(:placeholder-shown),
[data-theme="dark"] .sw-textarea:invalid:not(:placeholder-shown) {
    border-color: #ff6b81;
}

[data-theme="dark"] .sw-cstatus--error {
    color: #ff8095;
    background: rgba(255, 107, 129, 0.1);
    border-color: rgba(255, 107, 129, 0.3);
}

[data-theme="dark"] .sw-cstatus--info {
    color: #a6adb8;
}
