/* =========================================================
 * Crew Registration – Red Star Energy
 * Version 2.0 – Maritime Hero Background
 * Primary #b21f24 · Accent #ffcc00
 * ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root {
    --cr-red:       #b21f24;
    --cr-red-dark:  #8d0018;
    --cr-yellow:    #ffcc00;
    --cr-text:      #1a1a1a;
    --cr-muted:     #6b6b6b;
    --cr-border:    #e0e0e0;
    --cr-bg:        #f5f5f5;
    --cr-error:     #c0392b;
    --cr-radius:    6px;
    --cr-font:      'Be Vietnam Pro', sans-serif;
}

/* ── Scoped reset ── */
.crew-page-wrap,
.crew-page-wrap * {
    box-sizing: border-box;
    font-family: var(--cr-font);
}

/* ── Full-page blank override ── */
body.crew-reg-blank-page {
    margin: 0 !important;
    padding: 0 !important;
    background: #0a1628;
}
body.crew-reg-blank-page #site-header,
body.crew-reg-blank-page .custom-header-wrapper,
body.crew-reg-blank-page .site-header,
body.crew-reg-blank-page header.site-header,
body.crew-reg-blank-page .elementor-location-header,
body.crew-reg-blank-page #masthead,
body.crew-reg-blank-page #site-footer,
body.crew-reg-blank-page .site-footer,
body.crew-reg-blank-page footer.site-footer,
body.crew-reg-blank-page .elementor-location-footer,
body.crew-reg-blank-page #colophon { display: none !important; }
body.crew-reg-blank-page #wpadminbar { display: none !important; }

/* ══════════════════════════════════════════════
 * PAGE WRAPPER – Maritime Hero Background
 * ══════════════════════════════════════════════ */
.crew-page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Ship background using CSS gradient + SVG pattern for ocean feel */
    background-color: #0a1628;
    background-image:
        /* Sunset/Ocean gradient overlay */
        linear-gradient(
            180deg,
            rgba(10,22,40,0.55) 0%,
            rgba(30,15,5,0.40) 30%,
            rgba(139,0,0,0.25) 55%,
            rgba(10,22,40,0.65) 100%
        ),
        /* Ship silhouette via external image */
        url('https://rsa.nguyenconghoangvu.site/wp-content/uploads/2026/05/992ee1fb-d308-4fd9-9016-b5d0e4c4c008.webp');
    background-size: cover;
    background-position: center 40%;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* ── Decorative wave bar at top ── */
.crew-page-wrap::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cr-red), #e74c3c, var(--cr-yellow), #e74c3c, var(--cr-red));
    z-index: 100;
}

/* ── Overlay (dark vignette for readability) ── */
.crew-bg-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(178,31,36,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(10,22,40,0.5) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ── Main ── */
.crew-main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 56px 16px 56px;
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════════
 * CARD – Frosted glass / white form card
 * ══════════════════════════════════════════════ */
.crew-card {
    width: 100%;
    max-width: 780px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 12px;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.07),
        0 20px 60px rgba(0,0,0,0.35),
        0 0 0 1px rgba(178,31,36,0.08);
    overflow: hidden;
    animation: crew-card-in .5s ease both;
}
@keyframes crew-card-in {
    from { opacity:0; transform: translateY(16px); }
    to   { opacity:1; transform: translateY(0); }
}

/* ── Card Header – red branded ── */
.crew-card-header {
    background: linear-gradient(135deg, #8b0000 0%, #b21f24 55%, #c0392b 100%);
    padding: 28px 40px 24px;
    position: relative;
    overflow: hidden;
}
/* Decorative wave pattern in header */
.crew-card-header::before {
    content: '';
    position: absolute;
    bottom: -20px; left: -10%; right: -10%;
    height: 40px;
    background: rgba(255,255,255,0.97);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 2;
}
/* Ship silhouette decoration */
.crew-card-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 90% 50%, rgba(255,200,0,0.07) 0%, transparent 60%),
        linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.crew-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    z-index: 3;
}

/* Logo image */
.crew-logo-img {
    height: 56px;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    display: block;
}

.crew-header-text { flex: 1; }

.crew-logo-text {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .22em;
    color: rgba(255,255,255,0.70);
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.crew-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 3px;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.crew-subtitle {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .20em;
    color: rgba(255,255,255,0.60);
    text-transform: uppercase;
    margin: 0;
}

/* ── Header wave spacer ── */
.crew-header-wave {
    height: 24px;
    position: relative;
    z-index: 1;
}

/* ── Card Body ── */
.crew-card-body {
    padding: 32px 40px 40px;
    background: #ffffff;
}

/* ── Section ── */
.crew-section {
    margin-bottom: 32px;
}
.crew-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--cr-red);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.crew-section-title svg { color: var(--cr-red); flex-shrink: 0; }

/* ── Grid ── */
.crew-grid { display: grid; gap: 16px 20px; }
.crew-grid-1 { grid-template-columns: 1fr; }
.crew-grid-2 { grid-template-columns: 1fr 1fr; }
.crew-col-span-2 { grid-column: span 2; }

/* ── Field ── */
.crew-field { display: flex; flex-direction: column; gap: 5px; }
.crew-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--cr-muted);
}
.crew-required { color: var(--cr-red); }

/* ── Inputs ── */
.crew-input {
    width: 100%;
    height: 42px;
    border: 1.5px solid var(--cr-border);
    border-radius: var(--cr-radius);
    background: #fff;
    padding: 0 13px;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--cr-text);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    -webkit-appearance: none;
    appearance: none;
}
.crew-input:focus {
    border-color: var(--cr-red);
    box-shadow: 0 0 0 3px rgba(178,31,36,0.10);
}
.crew-input::placeholder { color: #bbb; font-size: 13px; }
.crew-input.is-invalid {
    border-color: var(--cr-error);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.10);
}
.crew-input-uppercase { text-transform: uppercase; letter-spacing: .04em; }
.crew-input-date { color: var(--cr-text); }

/* Select */
.crew-select-wrap { position: relative; display: flex; align-items: center; }
.crew-select-wrap .crew-input { padding-right: 34px; appearance: none; cursor: pointer; }
.crew-select-icon {
    position: absolute; right: 11px;
    color: var(--cr-muted); pointer-events: none; flex-shrink: 0;
}

/* Prefix input ($) */
.crew-input-prefix-wrap { position: relative; display: flex; align-items: center; }
.crew-input-prefix {
    position: absolute; left: 13px;
    color: var(--cr-muted); font-size: 14px; font-weight: 600;
    pointer-events: none; z-index: 1;
}
.crew-input-with-prefix { padding-left: 26px; }

/* Textarea */
.crew-textarea {
    height: auto; padding: 10px 13px; resize: vertical;
    min-height: 96px; line-height: 1.6; font-size: 13.5px;
}

/* ── File Upload Drop Zone ── */
.crew-doc-desc {
    font-size: 12px; color: var(--cr-muted);
    margin-bottom: 14px; line-height: 1.55;
}
.crew-file-upload {
    position: relative;
    border: 2px dashed #d0d5dd;
    border-radius: var(--cr-radius);
    background: #fafafa;
    cursor: pointer;
    transition: border-color .18s, background .18s;
    overflow: hidden;
}
.crew-file-upload:hover,
.crew-file-upload.is-dragging {
    border-color: var(--cr-red);
    background: #fff8f8;
}
.crew-file-upload input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer;
    width: 100%; height: 100%; z-index: 2;
}
.crew-file-label {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; padding: 32px 20px; text-align: center;
    color: var(--cr-muted); pointer-events: none;
}
.crew-file-label svg { color: #bbb; }
.crew-file-label span { font-size: 13px; font-weight: 500; }
.crew-file-label small { font-size: 11px; color: #bbb; }
.crew-file-label.has-file { color: var(--cr-red); }
.crew-file-label.has-file svg { color: var(--cr-red); }

/* ── Checkbox group ── */
.crew-checkbox-group { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 4px; }
.crew-checkbox-label {
    display: flex; align-items: center; gap: 7px; cursor: pointer;
    font-size: 13.5px; color: var(--cr-text); user-select: none;
}
.crew-checkbox-label input[type="checkbox"] {
    width: 15px; height: 15px; accent-color: var(--cr-red);
    cursor: pointer; margin: 0; flex-shrink: 0;
}
.crew-checkbox-box { display: none; }

/* ── Alerts ── */
.crew-alert {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: var(--cr-radius);
    font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.crew-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ── Field Error ── */
.crew-field-error {
    font-size: 11px; font-weight: 600; color: var(--cr-error);
    display: none; align-items: center; gap: 4px; margin-top: 2px;
}
.crew-field-error.is-visible { display: flex; }

/* ── Consent ── */
.crew-consent-wrap { margin-bottom: 24px; }
.crew-consent-label {
    display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
}
.crew-consent-label input[type="checkbox"] {
    margin-top: 2px; width: 15px; height: 15px;
    accent-color: var(--cr-red); cursor: pointer; flex-shrink: 0;
}
.crew-consent-box { display: none; }
.crew-consent-text { font-size: 12.5px; line-height: 1.65; color: var(--cr-muted); }

/* ── Submit ── */
.crew-submit-wrap {
    display: flex; align-items: center;
    justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 24px 0 0;
    border-top: 1px solid #f0f0f0;
}
.crew-submit-hint {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; color: var(--cr-muted); font-weight: 500;
}
.crew-submit-hint svg { color: #22c55e; }
.crew-btn-submit {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 40px;
    background: linear-gradient(135deg, #b21f24 0%, #c0392b 100%);
    color: #fff;
    font-size: 11.5px; font-weight: 800; letter-spacing: .14em;
    text-transform: uppercase; text-align: center; text-decoration: none;
    border: none; border-radius: var(--cr-radius);
    cursor: pointer;
    transition: all .18s;
    box-shadow: 0 4px 16px rgba(178,31,36,0.35);
    white-space: nowrap;
}
.crew-btn-submit:hover {
    background: linear-gradient(135deg, #8d0018 0%, #b21f24 100%);
    box-shadow: 0 6px 24px rgba(141,0,24,0.40);
    color: #fff; text-decoration: none;
    transform: translateY(-1px);
}
.crew-btn-submit:active { transform: scale(0.98); }
.crew-btn-submit:disabled { opacity: .7; cursor: not-allowed; }

.crew-btn-spinner { display: inline-flex; align-items: center; gap: 8px; }
.crew-spin { animation: crew-spin-anim .75s linear infinite; }
@keyframes crew-spin-anim {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Bottom stripe ── */
.crew-card-stripe {
    height: 5px;
    background: linear-gradient(90deg, var(--cr-red), #c0392b, var(--cr-yellow));
}

/* ── Success View ── */
.crew-success-card .crew-card-body { text-align: center; padding: 56px 40px; }
.crew-success-icon { margin-bottom: 20px; }
.crew-success-title { font-size: 22px; font-weight: 800; color: var(--cr-text); margin-bottom: 10px; }
.crew-success-msg { font-size: 14px; color: var(--cr-muted); line-height: 1.7; max-width: 480px; margin: 0 auto; }

/* ── Footer ── */
.crew-footer {
    text-align: center; padding: 20px 16px;
    background: rgba(10, 22, 40, 0.80);
    backdrop-filter: blur(10px);
    position: relative; z-index: 1;
}
.crew-footer p {
    font-size: 11px; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,0.45);
}

/* ── Honeypot ── */
.crew-honeypot {
    position: absolute; left: -9999px; top: -9999px;
    opacity: 0; pointer-events: none; height: 0; overflow: hidden;
}

/* ── Divider with label ── */
.crew-section-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 8px 0 24px; color: #ccc; font-size: 11px; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
}
.crew-section-divider::before,
.crew-section-divider::after {
    content: ''; flex: 1; height: 1px; background: #eeeeee;
}
input.crew-input.crew-input-with-prefix.money-s {
    padding-left: 30px;
}
/* ── Responsive ── */
@media (max-width: 680px) {
    .crew-main { padding: 0; }
    .crew-card { border-radius: 0; box-shadow: none; }
    .crew-card-header { padding: 24px 20px 22px; }
    .crew-card-body { padding: 24px 20px; }
    .crew-grid-2 { grid-template-columns: 1fr; }
    .crew-submit-wrap { flex-direction: column-reverse; align-items: stretch; }
    .crew-btn-submit { width: 100%; }
    .crew-header-inner { flex-direction: column; gap: 12px; }
    .crew-logo-img { height: 44px; }
    .crew-title { font-size: 18px; }
}
