/* Contact Us (page-contact-us.php, page 473). Builds on stospn-routers.css + stospn-url.css + stospn-legal.css.
 * The form is Contact Form 7 form 703 with sxc-* markup (sxc-grid, sxc-f, sxc-l, sxc-full, sxc-send).
 * stospn-custom.css styles every .wpcf7 field with !important, so the rules here are scoped to #sxc-form + !important. */

.sxc .sx-rt-hero { padding-bottom: 40px; }

/* ---------- Three ways to reach us ---------- */
.sxc-ways {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px 56px;
}
.sx-rt a.sxc-way { display: flex; flex-direction: column; text-decoration: none !important; color: inherit !important; }
.sxc-way p { flex: 1; margin-bottom: 16px !important; }
.sx-rt .sxc-way-go {
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px;
    color: var(--rt-cyan);
    overflow-wrap: anywhere;
}
.sxc-way-go i { font-style: normal; display: inline-block; transition: transform .2s; }
.sxc-way:hover .sxc-way-go i { transform: translateX(4px); }

/* ---------- Form section ---------- */
.sxc-main {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: 48px;
    align-items: start;
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 20px 90px;
    border-top: 1px solid var(--rt-line);
}
.sxc-side h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.25; margin-bottom: 14px !important; }
.sx-rt .sxc-side > p { color: var(--rt-muted); font-size: 1.02rem; margin-bottom: 24px; }
.sxc-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.sxc-side li { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.sxc-side li .sx-ab-ico { flex: 0 0 auto; margin: 0; }
.sx-rt .sxc-side li span:not(.sx-ab-ico) { color: var(--rt-muted); font-size: 0.95rem; line-height: 1.55; }
.sxc-side li b { display: block; color: #fff; font-weight: 700; margin-bottom: 2px; }
.sx-rt .sxc-side a { color: var(--rt-cyan) !important; }

.sxc-card {
    position: relative;
    border: 1px solid rgba(0, 240, 255, 0.22);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(0, 240, 255, 0.05), rgba(168, 85, 247, 0.05) 60%, rgba(255, 255, 255, 0.02));
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.08), 0 0 60px rgba(168, 85, 247, 0.08);
    padding: 32px;
}

/* Contact Form 7 inside the card */
/* stospn-custom.css gives .wpcf7, .wpcf7-form and .wpcf7-form-control-wrap 75% width + 40px left margin: undo it here */
#sxc-form .wpcf7,
#sxc-form .wpcf7-form,
#sxc-form .wpcf7-form-control-wrap { width: 100% !important; max-width: none !important; margin: 0 !important; }
#sxc-form .sxc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
#sxc-form .sxc-full { grid-column: 1 / -1; }
#sxc-form .sxc-f { display: block !important; margin: 0 !important; padding: 0 !important; }
#sxc-form .sxc-l {
    display: block;
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
    font-size: 0.74rem !important; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--rt-cyan) !important;
    margin-bottom: 8px;
}
#sxc-form .wpcf7-form-control-wrap { display: block !important; }
#sxc-form input[type="text"],
#sxc-form input[type="email"],
#sxc-form select,
#sxc-form textarea {
    display: block;
    width: 100% !important; max-width: 100% !important;
    margin: 0 !important;
    padding: 13px 16px !important;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif !important;
    font-size: 16px !important; /* 16px stops phones zooming in */
    line-height: 1.5 !important;
    color: #fff !important;
    background: rgba(6, 3, 10, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
#sxc-form select {
    appearance: none; -webkit-appearance: none;
    padding-right: 44px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300F0FF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 18px !important;
    cursor: pointer;
}
#sxc-form select option { background: #0A0614; color: #fff; }
#sxc-form textarea { min-height: 190px !important; height: 190px; resize: vertical; }
#sxc-form ::placeholder { color: rgba(169, 166, 194, 0.55) !important; }
#sxc-form input:hover, #sxc-form select:hover, #sxc-form textarea:hover { border-color: rgba(0, 240, 255, 0.35) !important; }
#sxc-form input:focus, #sxc-form select:focus, #sxc-form textarea:focus {
    border-color: var(--rt-cyan) !important;
    background-color: rgba(0, 240, 255, 0.04) !important;
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15), 0 0 18px rgba(0, 240, 255, 0.18) !important;
}
#sxc-form .wpcf7-form-control.wpcf7-not-valid { border-color: #FF4D6D !important; }
#sxc-form .wpcf7-not-valid-tip {
    display: block; margin-top: 6px;
    font-size: 0.85rem !important; color: #FF4D6D !important;
    text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important;
}

/* Security check: "4 + 7 = ?" and a short answer box (plugin STOSPN Contact, tag [sxc_math*]) */
#sxc-form .sxc-math { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 16px; }
#sxc-form .sxc-q {
    flex: 0 0 auto;
    min-width: 140px;
    height: 50px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 18px;
    border: 1px dashed rgba(168, 85, 247, 0.55);
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.08);
    font-family: 'Orbitron', 'Segoe UI', sans-serif !important;
    font-size: 1.05rem; font-weight: 700; letter-spacing: 1px; line-height: 1.5;
    color: #fff;
    text-align: center;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
    user-select: none;
}
#sxc-form .sxc-math .wpcf7-form-control-wrap { width: auto !important; flex: 1 1 120px; min-width: 0; }
#sxc-form .sxc-math input.sxc-math-in { width: 110px !important; height: 50px !important; padding-top: 0 !important; padding-bottom: 0 !important; text-align: center !important; font-size: 1.05rem !important; font-weight: 700; letter-spacing: 1px; }

/* Send row */
#sxc-form .sxc-send { display: flex !important; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px !important; }
#sxc-form input[type="submit"] {
    width: auto !important; min-width: 0 !important;
    margin: 0 !important;
    font-family: 'Orbitron', 'Segoe UI', sans-serif !important;
    font-size: 0.85rem !important; font-weight: 700 !important; letter-spacing: 1.5px !important; text-transform: uppercase;
    color: #06030A !important;
    padding: 15px 34px !important;
    border: 0 !important; border-radius: 10px !important;
    background: linear-gradient(90deg, #00F0FF, #3B82F6 55%, #A855F7) !important;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.4), 0 0 32px rgba(168, 85, 247, 0.25) !important;
    cursor: pointer;
    transition: box-shadow .2s, transform .2s, filter .2s;
}
#sxc-form input[type="submit"]:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 0 22px rgba(0, 240, 255, 0.6), 0 0 40px rgba(168, 85, 247, 0.35) !important; }
#sxc-form input[type="submit"]:focus-visible { outline: 2px solid #fff !important; outline-offset: 3px; }
#sxc-form input[type="submit"]:disabled { opacity: 0.6; cursor: wait; transform: none; }
#sxc-form .sxc-small { color: var(--rt-muted); font-size: 0.85rem; }
#sxc-form .wpcf7-spinner { order: 3; margin: 0 !important; background-color: var(--rt-cyan); }

/* Result message under the form */
#sxc-form .wpcf7 form .wpcf7-response-output {
    margin: 22px 0 0 !important;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: #fff !important;
    font-size: 0.95rem !important;
}
#sxc-form .wpcf7 form.sent .wpcf7-response-output { border-color: #00FF9C !important; background: rgba(0, 255, 156, 0.07) !important; box-shadow: 0 0 16px rgba(0, 255, 156, 0.15); }
#sxc-form .wpcf7 form.invalid .wpcf7-response-output,
#sxc-form .wpcf7 form.unaccepted .wpcf7-response-output,
#sxc-form .wpcf7 form.payment-required .wpcf7-response-output { border-color: #FFC857 !important; background: rgba(255, 200, 87, 0.07) !important; }
#sxc-form .wpcf7 form.spam .wpcf7-response-output,
#sxc-form .wpcf7 form.failed .wpcf7-response-output,
#sxc-form .wpcf7 form.aborted .wpcf7-response-output { border-color: #FF4D6D !important; background: rgba(255, 77, 109, 0.07) !important; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 960px) {
    .sxc-ways { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .sxc-main { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 44px; }
}
@media (max-width: 600px) {
    .sxc-ways { padding: 0 16px 44px; }
    .sxc-main { padding: 40px 16px 70px; }
    .sxc-card { padding: 22px 18px; border-radius: 14px; }
    #sxc-form .sxc-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    #sxc-form .sxc-send { flex-direction: column; align-items: stretch; text-align: center; }
    #sxc-form input[type="submit"] { width: 100% !important; }
}

/* ---------- Arabic (right to left) ---------- */
[dir="rtl"] #sxc-form select { padding-right: 16px !important; padding-left: 44px !important; background-position: left 14px center !important; }
[dir="rtl"] .sxc-way:hover .sxc-way-go i { transform: translateX(-4px); } /* the arrow itself is translated to &larr; in TranslatePress */
[dir="rtl"] #sxc-form .sxc-l { letter-spacing: 0; text-align: right !important; font-size: 0.9rem !important; }
[dir="rtl"] #sxc-form input[type="text"], [dir="rtl"] #sxc-form select, [dir="rtl"] #sxc-form textarea, [dir="rtl"] #sxc-form .wpcf7-not-valid-tip { text-align: right !important; }
[dir="rtl"] #sxc-form input[type="email"] { direction: ltr; text-align: left !important; } /* addresses are written left to right */
