/* contact.css */

@font-face {
    font-family: 'Cinzel';
    src: url('/assets/fonts/Cinzel-VariableFont_wght.ttf') format("truetype");
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Cinzel', serif;
    box-sizing: border-box;
}

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
    --gold:    #FFD700;
    --gold-d:  #B8860B;
    --gold-l:  #FFC200;
    --black:   #000;
    --ink:     #0a0814;
    --dark:    #0d0d0d;
    --silver:  #C0C0C0;
    --white:   #fff;
    --header-h: 84px;
    --fade-dur: 1.25s;
}

/* ── RESET & BASE ────────────────────────────────────────── */
html { scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar { display: none; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cinzel', serif; }
body { overflow-x: hidden; background: var(--black); color: var(--white); }

/* ── PAGE-LOAD ANIMATIONS (pure CSS) ─────────────────────── */
.header-container { animation: slideDown 1.25s ease .1s both; }
main              { animation: fadeUp   1.56s ease .9s  both; }

@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:none; } }
@keyframes fadeUp    { from { opacity:0; transform:translateY(12px);  } to { opacity:1; transform:none; } }

/* ── SCROLL FADE (JS adds/removes .visible) ──────────────── */
.fade-in, .fade-section, .fade-content {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--fade-dur) ease, transform var(--fade-dur) ease;
}
.fade-in.visible, .fade-section.visible, .fade-content.visible {
    opacity: 1; transform: none;
}

/* ── HEADER ──────────────────────────────────────────────── */
header { position: fixed; top:0; left:0; right:0; z-index:1000; }

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,215,0,.22);
    padding: 10px 28px;
    gap: 16px;
    height: var(--header-h);
}

/* Logo cycling */
.logo-images { position:relative; width:60px; height:60px; flex:0 0 60px; }
.logo-images img { position:absolute; opacity:0; animation: switchImg 9s steps(1) infinite; }
.logo-rock { width:60px; height:60px; }
.logo-coin { width:34px; height:34px; top:50%; left:50%; transform:translate(-50%,-50%); }
.logo-bar  { width:60px; height:60px; }
.logo-images img:nth-child(1) { animation-delay:0s; }
.logo-images img:nth-child(2) { animation-delay:3s; }
.logo-images img:nth-child(3) { animation-delay:6s; }
@keyframes switchImg { 0%{opacity:1;} 33.5%{opacity:0;} 100%{opacity:0;} }

/* Brand name */
.header-logo {
    flex:1; text-align:center;
    font-size:24px; font-weight:700; color:var(--gold);
    letter-spacing:6px; white-space:nowrap;
    text-shadow: 0 0 18px rgba(255,215,0,.4);
}

/* Mobile toggle */
.nav-toggle-input { display:none; }
.hamburger {
    display:none; flex-direction:column; gap:5px;
    cursor:pointer; padding:8px; flex:0 0 auto;
    border:1px solid rgba(255,215,0,.3); border-radius:8px;
    transition:border-color .2s;
}
.hamburger:hover { border-color:var(--gold); }
.hamburger .bar { display:block; width:22px; height:2px; background:var(--gold); border-radius:2px; }

/* Nav */
.header-links { display:flex; align-items:center; flex:0 0 auto; }
.nav-list { display:flex; list-style:none; align-items:center; gap:4px; }

.nav-item a {
    display:block; position:relative;
    color:rgba(255,255,255,.75); text-decoration:none;
    padding:8px 13px; font-size:13px; white-space:nowrap;
    letter-spacing:1px; border-radius:6px;
    transition:color .2s, background .2s;
}
.nav-item a::after {
    content:''; position:absolute; bottom:3px; left:50%;
    width:0; height:2px; background:var(--gold);
    border-radius:2px; transform:translateX(-50%);
    transition:width .25s ease;
}
.nav-item a:hover        { color:var(--gold); background:rgba(255,215,0,.07); }
.nav-item a:hover::after { width:calc(100% - 26px); }
.nav-item a:active       { color:var(--gold-d); }

@media (max-width:900px) {
    .header-container { flex-wrap:wrap; padding:10px 16px; height:auto; }
    .hamburger  { display:flex; order:3; }
    .logo-images{ order:1; }
    .header-logo{ order:2; flex:1; }
    .header-links {
        order:4; width:100%; overflow:hidden;
        max-height:0; flex:1 0 100%;
        border-top:0 solid transparent;
        transition:max-height .4s ease, border-top .4s;
    }
    .nav-toggle-input:checked ~ .header-links {
        max-height:500px;
        border-top:1px solid rgba(255,215,0,.15);
    }
    .nav-list { flex-direction:column; gap:4px; padding:10px 0; width:100%; align-items:stretch; }
    .nav-item { width:100%; text-align:center; }
    .nav-item a { display:block; width:100%; padding:12px 0; font-size:15px; color:rgba(255,255,255,.85); }
    .nav-item a::after { display:none; }
    .nav-item a:hover  { color:var(--gold); background:rgba(255,215,0,.08); }
}

/* ── BACKGROUND VIDEO ────────────────────────────────────── */
.bg-video {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

/* ── PAGE LAYOUT ─────────────────────────────────────────── */
body { overflow: hidden; }

.contact-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - var(--header-h));
    margin-top: var(--header-h);
    padding: 20px;
}

/* ── FLOATING CARD (two-column) ──────────────────────────── */
.contact-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 980px;
    max-height: calc(100vh - var(--header-h) - 60px);
    overflow-y: auto;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 215, 0, 0.07);
}

/* ── LEFT: FORM COLUMN ───────────────────────────────────── */
.card-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1 1 0;
    padding: 36px 40px;
    min-width: 0;
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.28);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
}

.card-sub {
    font-size: 12px;
    color: var(--silver);
    line-height: 1.7;
}

/* ── LEFT: FORM COLUMN ───────────────────────────────────── */
.card-left {
    display: flex;
    flex-direction: column;
    gap: 12px;                  /* was 14px — tightened uniformly */
    flex: 1 1 0;
    padding: 28px 40px;         /* was 36px top/bottom — reduces header-to-field gap */
    min-width: 0;
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 12px;       /* was 14px */
    border-bottom: 1px solid rgba(255, 215, 0, 0.28);
    margin-bottom: 2px;         /* small extra push before first field row */
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Hint and error are now identical in layout behaviour —
   both hidden (zero height) until they have content/class  */
.field-hint {
    font-size: 10px;
    color: var(--silver);
    display: none;              /* was: always visible with min-height:14px */
}
.field-hint.visible { display: block; }

.field-error {
    font-size: 10px;
    color: #f44336;
    display: none;
}
.field-error.visible { display: block; }

/* ── FORM ELEMENTS ───────────────────────────────────────── */
.form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.form-row .form-group {
    flex: 1 1 160px; 
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--silver);
}

.char-counter {
    font-size: 10px;
    color: var(--silver);
    letter-spacing: 0;
    text-transform: none;
    transition: color 0.2s;
}
.char-counter.warn  { color: #FFA500; }
.char-counter.limit { color: #f44336; }

.form-group input,
.form-group textarea,
.form-group select {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    padding: 8px 12px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.04);
}

.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
    border-color: #f44336;
}

.form-group textarea {
    resize: none;
    height: 82px;
}

.form-group select option { background: var(--black); }

.field-hint  { font-size: 10px; color: var(--silver); min-height: 14px; }
.field-error { font-size: 10px; color: #f44336; display: none; }
.field-error.visible { display: block; }

/* Status banner */
.form-status { font-size: 12px; min-height: 16px; line-height: 1.6; }
.form-status.success {
    color: #4caf50; padding: 10px 14px;
    background: rgba(10, 42, 10, 0.85);
    border: 1px solid #4caf50; border-radius: 10px;
}
.form-status.error {
    color: #f44336; padding: 10px 14px;
    background: rgba(42, 10, 10, 0.85);
    border: 1px solid #f44336; border-radius: 10px;
}
.form-status.info {
    color: var(--gold); padding: 10px 14px;
    background: rgba(30, 25, 0, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.4); border-radius: 10px;
}

/* Submit button */
.btn-submit {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    padding: 10px 28px;
    border-radius: 10px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    align-self: flex-start;
    letter-spacing: 1px;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.btn-submit:hover    { background: var(--gold); color: var(--black); }
.btn-submit:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── VERTICAL DIVIDER ────────────────────────────────────── */
.card-divider {
    width: 1px;
    background: rgba(255, 215, 0, 0.2);
    flex-shrink: 0;
    margin: 24px 0;
}

/* ── RIGHT: INFO COLUMN ──────────────────────────────────── */
.card-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    width: 260px;
    flex-shrink: 0;
    padding: 36px 32px;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}

.info-value {
    font-size: 12px;
    color: var(--silver);
    line-height: 1.75;
}

.info-value strong { color: var(--white); font-weight: 600; }

.info-value a {
    color: var(--silver);
    text-decoration: none;
    transition: color 0.2s;
}
.info-value a:hover { color: var(--gold); }

/* Social icons */
.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, transform 0.18s;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.social-link svg   { width: 14px; height: 14px; fill: currentColor; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    display: flex; flex-wrap: wrap;
    justify-content: space-between; align-items: center;
    padding: 9px 32px; gap: 12px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 215, 0, 0.18);
    color: var(--silver); font-size: 12px;
    z-index: 10;
}
.footer-bar a { color: var(--silver); text-decoration: none; transition: color 0.2s; }
.footer-bar a:hover { color: var(--gold); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 780px) {
    body { overflow: auto; }
    .contact-page {
        height: auto;
        padding: 16px 12px 80px;
        align-items: flex-start;
    }
    .contact-card {
        flex-direction: column;
        max-height: none;
        border-radius: 18px;
    }
    .card-divider {
        width: auto; height: 1px;
        margin: 0 24px;
    }
    .card-left  { padding: 28px 24px; }
    .card-right { width: 100%; padding: 24px 24px 30px; }
}