/* ═══════════════════════════════════════════════════════════════
   EXCEGIS — contact form
   Loaded only by /contact, so css/style.css stays identical to the
   design folder's copy. Uses that file's custom properties throughout.
   ═══════════════════════════════════════════════════════════════ */

.contact-panel {
    background: var(--xg-surface);
    border: 1px solid var(--xg-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 575.98px) {
    .contact-panel { padding: 1.5rem; }
}

.xg-field { margin-bottom: 1.35rem; }

.xg-label {
    display: block;
    font-family: var(--font-display);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--xg-muted);
    margin-bottom: .5rem;
}

.xg-label .opt {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    opacity: .7;
}

.xg-input,
.xg-select,
.xg-textarea {
    width: 100%;
    background: rgba(7, 7, 18, 0.55);
    border: 1px solid var(--xg-border);
    border-radius: var(--radius-md);
    color: var(--xg-text);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: .8rem 1rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.xg-textarea { min-height: 9.5rem; resize: vertical; }

.xg-input::placeholder,
.xg-textarea::placeholder { color: rgba(154, 156, 184, 0.55); }

.xg-input:focus,
.xg-select:focus,
.xg-textarea:focus {
    outline: none;
    border-color: var(--xg-blue);
    background: rgba(7, 7, 18, 0.8);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.25);
}

/* Native select arrow, drawn to match the dark surface */
.xg-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%239a9cb8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.6rem;
}

.xg-select option { background: var(--xg-bg-2); color: var(--xg-text); }

/* Validation ------------------------------------------------------ */
.xg-error {
    display: block;
    margin-top: .4rem;
    font-size: .86rem;
    color: #fca5a5;
}

.xg-input.input-validation-error,
.xg-select.input-validation-error,
.xg-textarea.input-validation-error {
    border-color: rgba(248, 113, 113, 0.7);
}

.xg-summary {
    border: 1px solid rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.08);
    border-radius: var(--radius-md);
    padding: .9rem 1.1rem;
    margin-bottom: 1.5rem;
    color: #fecaca;
}

.xg-summary ul { margin: 0; padding-left: 1.1rem; }
.xg-summary:empty,
.xg-summary ul:empty { display: none; }

/* Honeypot — off-screen rather than display:none, which more bots skip.
   Never remove: it is load-bearing spam protection, not styling. */
.xg-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Submit row ------------------------------------------------------ */
.xg-submit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.xg-verify {
    font-size: .88rem;
    color: var(--xg-muted);
    display: none;
    align-items: center;
    gap: .5rem;
}

.xg-verify.is-shown { display: inline-flex; }
.xg-verify.is-error { color: #fca5a5; }

.xg-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--xg-border);
    border-top-color: var(--xg-sky);
    border-radius: 50%;
    animation: xg-spin .7s linear infinite;
}

.xg-verify.is-done .xg-spinner,
.xg-verify.is-error .xg-spinner { display: none; }

@keyframes xg-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .xg-spinner { animation: none; }
}

.xg-privacy {
    margin-top: 1.25rem;
    font-size: .84rem;
    color: var(--xg-muted);
}

/* Success ---------------------------------------------------------- */
.xg-sent {
    text-align: center;
    padding: 3rem 2rem;
}

.xg-sent-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    color: #fff;
    background: var(--xg-gradient);
    box-shadow: 0 8px 30px rgba(47, 111, 237, 0.45);
}

/* Contact details column ------------------------------------------- */
.contact-aside h6 {
    font-family: var(--font-display);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--xg-muted);
    margin-bottom: .9rem;
}

.contact-aside + .contact-aside { margin-top: 2.25rem; }

.contact-aside address { font-style: normal; color: var(--xg-text); line-height: 1.9; margin: 0; }

.contact-aside a { color: var(--xg-text); text-decoration: none; }
.contact-aside a:hover { color: var(--xg-sky); }
