/* ======================================================
   Goldie Guided Application — Stylesheet
   Gold: #d1aa66  |  Dark: #1a1a1a  |  Font: Inter
   ====================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* ---------- Layout ---------- */
.g-shell {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    height: 100vh;
    background: #f4f1ec;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* ---------- Topbar ---------- */
.g-topbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: #1a1a1a;
    color: #fff;
    z-index: 10;
}

.g-topbar-logo {
    font-weight: 700;
    font-size: 1rem;
    color: #d1aa66;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.g-topbar-step {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    color: #d1aa66;
    white-space: nowrap;
    font-weight: 600;
}

.g-topbar-exit {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: .35rem .85rem;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .3rem;
    white-space: nowrap;
    transition: background .2s;
    cursor: pointer;
    margin-left: auto;
}

.g-topbar-exit:hover { background: #bb2d3b; color: #fff; text-decoration: none; }

/* ---------- Exit Modal ---------- */
.g-exit-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.g-exit-modal-backdrop.show { display: flex; }

.g-exit-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: g-modal-in 0.25s ease;
}
@keyframes g-modal-in {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.g-exit-modal-header {
    background: #1a1a1a;
    padding: 1.75rem 1.5rem 1.25rem;
    text-align: center;
}

.g-exit-modal-header > i {
    font-size: 2rem;
    color: #d1aa66;
    display: block;
    margin-bottom: 0.5rem;
}

.g-exit-modal-title {
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 0.4rem;
    line-height: 1.25;
}

.g-exit-modal-sub {
    font-family: 'Inter', sans-serif;
    color: #adb5bd;
    font-size: 0.86rem;
    line-height: 1.6;
    margin: 0;
    max-width: 300px;
    margin-inline: auto;
}

.g-exit-modal-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.g-exit-field { display: flex; flex-direction: column; gap: 0.25rem; }
.g-exit-label { font-size: 0.78rem; font-weight: 600; color: #495057; }
.g-exit-input {
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #212529;
    outline: none;
    transition: border-color 0.15s;
    font-family: 'Inter', sans-serif;
}
.g-exit-input:focus { border-color: #d1aa66; }

.g-exit-modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.g-exit-btn {
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    font-family: 'Inter', sans-serif;
}
.g-exit-save   { background: #d1aa66; color: #1a1a1a; }
.g-exit-save:hover { background: #b8923e; }
.g-exit-plain  { background: transparent; color: #dc3545; border: 1.5px solid #dc3545; }
.g-exit-plain:hover { background: #dc3545; color: #fff; }
.g-exit-cancel { background: #2c3e50; color: #fff; }
.g-exit-cancel:hover { background: #1a252f; }

/* ---------- Resume Banner ---------- */
.g-resume-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #fdf9f0, #fef3d0);
    border: 2px solid #d1aa66;
    border-radius: 14px;
    padding: 1.25rem 1rem;
    text-align: center;
    margin: 0.5rem 0;
}
.g-resume-icon { font-size: 2rem; color: #d1aa66; }
.g-resume-text { font-size: 0.88rem; color: #495057; line-height: 1.5; }
.g-resume-text strong { color: #1a1a1a; }
.g-resume-actions { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; max-width: 280px; }
.g-resume-btn {
    border: none; border-radius: 8px; padding: 0.6rem 1rem;
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    transition: all 0.18s; font-family: 'Inter', sans-serif;
}
.g-resume-yes { background: #d1aa66; color: #1a1a1a; }
.g-resume-yes:hover { background: #b8923e; }
.g-resume-no  { background: transparent; border: 1.5px solid #6c757d; color: #6c757d; }
.g-resume-no:hover { background: #6c757d; color: #fff; }

/* ---------- Progress Bar ---------- */
.g-progress-wrap {
    flex-shrink: 0;
    background: #2c2c2c;
    padding: 0.4rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.g-progress-track {
    flex: 1;
    height: 6px;
    background: #3d3d3d;
    border-radius: 3px;
    overflow: hidden;
}

.g-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #d1aa66, #e2c38a);
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 0%;
}

.g-progress-label {
    font-size: 0.72rem;
    color: #adb5bd;
    white-space: nowrap;
}

/* ---------- Transcript (chat area) ---------- */
.g-transcript {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scroll-behavior: smooth;
}

/* ---------- Scrollbars (transcript + action area) ---------- */
.g-transcript::-webkit-scrollbar,
.g-action-wrap::-webkit-scrollbar {
    width: 5px;
}
.g-transcript::-webkit-scrollbar-track,
.g-action-wrap::-webkit-scrollbar-track {
    background: transparent;
}
.g-transcript::-webkit-scrollbar-thumb,
.g-action-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d1aa66 0%, #b8923e 100%);
    border-radius: 10px;
    border: 1px solid transparent;
    background-clip: padding-box;
}
.g-transcript::-webkit-scrollbar-thumb:hover,
.g-action-wrap::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e2c38a 0%, #d1aa66 100%);
    background-clip: padding-box;
}
/* Firefox */
.g-transcript,
.g-action-wrap {
    scrollbar-width: thin;
    scrollbar-color: #d1aa66 transparent;
}

/* ---------- Bubbles ---------- */
.g-bubble-wrap {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    max-width: 85%;
    animation: bubbleFadeIn 0.3s ease;
}

@keyframes bubbleFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.g-bubble-goldie-wrap { align-self: flex-start; }
.g-bubble-user-wrap   { align-self: flex-end; flex-direction: row-reverse; }

.g-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.g-avatar-goldie {
    background: transparent;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(209,170,102,.4);
}

.g-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.g-avatar-user { background: #2c3e50; color: #d1aa66; font-size: .9rem; }

.g-bubble {
    padding: 0.7rem 1rem;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 100%;
    word-break: break-word;
}

.g-bubble-goldie {
    background: #fff;
    color: #1a1a1a;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.g-bubble-user {
    background: #d1aa66;
    color: #1a1a1a;
    font-weight: 500;
    border-bottom-right-radius: 4px;
}

/* ---------- Phase / Section Dividers ---------- */
.g-phase-divider {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.5rem 0;
    align-self: stretch;
}
.g-phase-divider::before,
.g-phase-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d1aa66;
    opacity: 0.4;
}
.g-phase-divider-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d1aa66;
    white-space: nowrap;
}

/* Typing indicator */
.g-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 20px;
    padding: 0 4px;
}

.g-typing span {
    width: 7px;
    height: 7px;
    background: #d1aa66;
    border-radius: 50%;
    animation: typingBounce 1.2s infinite ease-in-out;
}

.g-typing span:nth-child(2) { animation-delay: 0.2s; }
.g-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
    40%            { transform: translateY(-6px); opacity: 1; }
}

/* ---------- Action Area ---------- */
.g-action-wrap {
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid #e9ecef;
    min-height: clamp(130px, 22vh, 200px);
    max-height: 55vh;
    overflow-y: auto;
}

#g-action {
    padding: 1rem 1.25rem 0.5rem;
    min-height: 80px;
}

/* ---------- Nav Buttons ---------- */
.g-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem 0.75rem;
    background: #fff;
    border-top: 1px solid #f0ede8;
    gap: 0.5rem;
}

.g-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.25rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.g-btn-back {
    background: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.g-btn-back:hover { background: #f8f9fa; color: #1a1a1a; }

.g-btn-skip {
    background: transparent;
    color: #6c757d;
    margin-left: auto;
}

.g-btn-continue {
    background: #d1aa66;
    color: #1a1a1a;
    padding: 0.55rem 1.75rem;
}

.g-btn-continue:hover {
    background: #b08c4a;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(209,170,102,0.35);
}

.g-btn-continue:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Error ---------- */
.g-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    font-size: 0.83rem;
    margin-bottom: 0.75rem;
}

/* ---------- Intro Screen ---------- */
.g-intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0 1rem;
}

.g-intro-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 0.75rem;
}

.g-intro-avatar-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(209,170,102,.45);
}

.g-intro-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.g-intro-pulse {
    position: absolute;
    top: -6px; left: -6px;
    width: 92px; height: 92px;
    border-radius: 50%;
    border: 3px solid #d1aa66;
    animation: goldPulse 2s infinite ease-in-out;
}

@keyframes goldPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50%       { transform: scale(1.1); opacity: 0.3; }
}

.g-intro-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
}

.g-intro-subtitle {
    font-size: 0.82rem;
    color: #6c757d;
}

/* ---------- Card Grid (category) ---------- */
.g-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    padding-bottom: 0.5rem;
}

.g-card-grid-image {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.g-select-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    text-align: center;
}

.g-select-card:hover {
    border-color: #d1aa66;
    box-shadow: 0 4px 12px rgba(209,170,102,0.2);
    transform: translateY(-2px);
}

.g-select-card.selected {
    border-color: #d1aa66;
    background: #fdf9f0;
    box-shadow: 0 4px 16px rgba(209,170,102,0.3);
}

.g-select-card-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.g-select-card-sub {
    font-size: 0.72rem;
    color: #6c757d;
    line-height: 1.3;
}

/* Image cards */
.g-select-card-image {
    padding: 0;
    overflow: hidden;
    text-align: center;
}

.g-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.g-card-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #2c2c2c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.g-select-card-image .g-select-card-title {
    padding: 0.5rem 0.75rem 0.25rem;
}

.g-select-card-image .g-select-card-sub {
    padding: 0 0.75rem 0.75rem;
}

/* ---------- Chips (cohort) ---------- */
.g-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
}

.g-chip {
    padding: 0.45rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 20px;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
}

.g-chip:hover {
    border-color: #d1aa66;
    color: #1a1a1a;
}

.g-chip.selected {
    border-color: #d1aa66;
    background: #d1aa66;
    color: #1a1a1a;
    font-weight: 600;
}

/* Tap-to-select prompt */
.g-selection-hint {
    font-size: 0.72rem;
    color: #adb5bd;
    text-align: center;
    padding: 0.2rem 0 0.5rem;
    letter-spacing: 0.02em;
}
.g-selection-hint i { margin-right: 0.25rem; color: #d1aa66; }

/* Persistent back/edit notice in action area */
.g-back-notice {
    font-size: 0.7rem;
    color: #adb5bd;
    text-align: center;
    padding: 0.4rem 1rem 0;
    border-top: 1px dashed #e9ecef;
    margin-top: 0.5rem;
}
.g-back-notice i { color: #d1aa66; margin-right: 0.2rem; }

/* Full-width CTA chips for binary decision steps */
.g-chips--cta {
    flex-direction: column;
}
.g-chips--cta .g-chip {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    text-align: left;
    border-radius: 12px;
}

/* ---------- Text / Multi Inputs ---------- */
.g-input, .g-select, .g-textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
}

.g-input:focus, .g-select:focus, .g-textarea:focus {
    border-color: #d1aa66;
    box-shadow: 0 0 0 3px rgba(209,170,102,0.15);
}

.g-textarea { resize: vertical; min-height: 60px; }

.g-multi-input {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.g-field-group { display: flex; flex-direction: column; gap: 0.3rem; }

.g-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.g-optional {
    font-size: 0.68rem;
    font-weight: 400;
    color: #adb5bd;
    background: #f8f9fa;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

/* ---------- File Upload Zone ---------- */
.g-drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8f9fa;
    position: relative;
}

.g-drop-zone:hover, .g-drop-zone.drag-over {
    border-color: #d1aa66;
    background: #fdf9f0;
}

.g-drop-zone.has-file {
    border-color: #28a745;
    background: #f0fff4;
    border-style: solid;
    cursor: default;
}

.g-drop-icon { font-size: 2rem; margin-bottom: 0.5rem; color: #adb5bd; }
.g-drop-text { font-size: 0.88rem; color: #495057; margin-bottom: 0.25rem; }
.g-drop-hint { font-size: 0.75rem; color: #adb5bd; }

/* File preview after upload */
.g-file-preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
}

.g-file-preview-img {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #28a745;
    box-shadow: 0 4px 16px rgba(40,167,69,0.2);
}

.g-file-icon-wrap {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #6c757d;
}

.g-file-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.g-file-name {
    font-size: 0.82rem;
    color: #155724;
    font-weight: 600;
    word-break: break-all;
    text-align: center;
    max-width: 220px;
}

.g-file-remove {
    background: #fff;
    border: 1.5px solid #dc3545;
    color: #dc3545;
    border-radius: 6px;
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.18s;
}

.g-file-remove:hover {
    background: #dc3545;
    color: #fff;
}

/* ---------- Review Screen ---------- */
.g-review {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.g-review-section {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.g-review-section-title {
    padding: 0.6rem 1rem;
    background: #1a1a1a;
    color: #d1aa66;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.g-review-edit-btn {
    background: transparent;
    border: 1px solid rgba(209,170,102,0.4);
    color: #d1aa66;
    border-radius: 6px;
    padding: 0.15rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.g-review-edit-btn:hover {
    background: rgba(209,170,102,0.15);
    border-color: #d1aa66;
}

.g-review-row {
    display: flex;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e9ecef;
    gap: 0.5rem;
}

.g-review-row:last-child { border-bottom: none; }

.g-review-label {
    font-size: 0.78rem;
    color: #6c757d;
    min-width: 130px;
    flex-shrink: 0;
}

.g-review-value {
    font-size: 0.82rem;
    color: #1a1a1a;
    font-weight: 500;
    word-break: break-word;
}

/* ---------- Nationality Select + Citizenship Badge ---------- */
.g-nationality-wrap { display: flex; flex-direction: column; gap: 0.5rem; }

.g-nationality-badge {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fdf9f0, #fef3d0);
    border: 1.5px solid #d1aa66;
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.83rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}

.g-nationality-badge i {
    color: #d1aa66;
    font-size: 0.9rem;
}

/* ---------- Qualification Chip Strip ---------- */
.g-qual-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.25rem 0;
}

.g-qual-chip {
    padding: 0.4rem 0.85rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}

.g-qual-chip:hover {
    border-color: #d1aa66;
    color: #1a1a1a;
    background: #fdf9f0;
}

.g-qual-chip.selected {
    border-color: #d1aa66;
    background: #d1aa66;
    color: #1a1a1a;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(209,170,102,0.35);
}

/* ---------- Empty Category ---------- */
.g-empty-category { padding: 1.5rem; text-align: center; }
.g-empty-msg  { font-size: 1rem; color: #6c757d; margin-bottom: .5rem; }
.g-empty-sub  { font-size: .9rem; color: #495057; font-weight: 600; margin-bottom: .75rem; }

/* ---------- Returning Applicant Lookup ---------- */
.g-returning-lookup {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}
.g-lookup-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}
.g-lookup-input {
    flex: 1;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}
.g-lookup-input:focus { border-color: #d1aa66; box-shadow: 0 0 0 3px rgba(209,170,102,.15); }
.g-lookup-btn {
    background: #d1aa66;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    transition: background 0.18s;
}
.g-lookup-btn:hover { background: #b8923e; }
.g-lookup-result { margin-top: 0.25rem; }

/* Not found state */
.g-lookup-notfound {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    font-size: 0.875rem;
    color: #664d03;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.g-lookup-notfound i { flex-shrink: 0; margin-top: 0.1rem; }

/* Found state */
.g-lookup-card {
    background: #f8f9fa;
    border: 1.5px solid #d1aa66;
    border-radius: 12px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.g-lookup-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}
.g-lookup-ref {
    font-size: 0.78rem;
    color: #6c757d;
    font-family: 'Courier New', monospace;
}
.g-lookup-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    background: #e9ecef;
    color: #495057;
    align-self: flex-start;
}
.g-lookup-paid {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #198754;
    background: #d1e7dd;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    align-self: flex-start;
}
.g-lookup-action-btn {
    margin-top: 0.4rem;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.18s;
}
.g-lookup-pay {
    background: #d1aa66;
    color: #1a1a1a;
}
.g-lookup-pay:hover { background: #b8923e; color: #1a1a1a; text-decoration: none; }
.g-lookup-account {
    background: #1a1a1a;
    color: #fff;
}
.g-lookup-account:hover { background: #2c2c2c; color: #fff; text-decoration: none; }
.g-lookup-done {
    background: #d1e7dd;
    color: #0a3622;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    text-align: center;
}
.g-lookup-done i { margin-right: 0.3rem; }

/* Login link step */
.g-login-prompt {
    text-align: center;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.g-login-prompt i { font-size: 2rem; color: #d1aa66; }
.g-login-prompt p { font-size: 0.9rem; color: #495057; margin: 0; }
.g-login-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #1a1a1a;
    color: #d1aa66;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s;
}
.g-login-link:hover { background: #2c2c2c; color: #d1aa66; text-decoration: none; }

/* ---------- Payment Step ---------- */
.g-payment-card {
    background: #f8f9fa;
    border: 1.5px solid #d1aa66;
    border-radius: 12px;
    padding: 1.25rem;
    width: 100%;
}
.g-payment-header {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 600; font-size: 0.9rem; color: #495057;
    margin-bottom: 0.4rem;
}
.g-payment-header i { color: #d1aa66; }
.g-payment-amount {
    font-size: 1.75rem; font-weight: 700; color: #1a1a1a;
    margin: 0.1rem 0 0.35rem;
}
.g-payment-desc { font-size: 0.83rem; color: #6c757d; margin: 0; }

/* ---------- Account Setup Step ---------- */
.g-account-card {
    display: flex; flex-direction: column; gap: 0.6rem; width: 100%;
}
.g-field-wrap { display: flex; flex-direction: column; gap: 0.2rem; }
.g-field-label { font-size: 0.8rem; font-weight: 600; color: #495057; }

/* Username badge */
.g-username-badge {
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.g-username-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0369a1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.g-username-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}
.g-username-note {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.1rem;
}

/* Password field with eye toggle */
.g-pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.g-pw-input {
    padding-right: 2.5rem !important;
    flex: 1;
}
.g-pw-toggle {
    position: absolute;
    right: 0.6rem;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.9rem;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}
.g-pw-toggle:hover { color: #1a1a1a; }

/* ---------- Logo in topbar ---------- */
.g-topbar-logo-img { height: 36px; width: auto; object-fit: contain; display: block; }
.g-topbar-logo-text {
    font-size: 1rem; font-weight: 800; color: #d1aa66;
    letter-spacing: 0.08em; align-items: center;
}

/* ---------- Completion Step ---------- */
.g-completion-card {
    text-align: center; padding: 1.5rem 1rem; width: 100%;
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.g-completion-icon { font-size: 3rem; color: #198754; }
.g-completion-title { font-size: 1.2rem; font-weight: 700; color: #1a1a1a; margin: 0; }
.g-completion-msg { font-size: 0.88rem; color: #495057; max-width: 300px; margin: 0; line-height: 1.5; }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .g-topbar-logo { font-size: 0.85rem; }
    .g-topbar-step { font-size: 0.72rem; }
    .g-card-grid { grid-template-columns: 1fr 1fr; }
    .g-card-grid-image { grid-template-columns: 1fr 1fr; }
    .g-bubble { font-size: 0.85rem; }
}

@media (min-width: 768px) {
    .g-shell { max-width: 700px; margin: 0 auto; box-shadow: 0 0 40px rgba(0,0,0,0.15); }
    .g-card-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .g-card-grid-image { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* ── Intro document checklist ── */
.g-intro-docs {
    margin: 1.1rem auto 0;
    max-width: 360px;
    width: 100%;
    background: linear-gradient(145deg, #fffdf7, #fff9ee);
    border: 1px solid rgba(209,170,102,.35);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    text-align: left;
    box-shadow: 0 2px 14px rgba(209,170,102,.12);
}

.g-intro-docs-title {
    font-weight: 700;
    font-size: 0.82rem;
    color: #1a1a1a;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.g-intro-docs-title i { color: #d1aa66; }

.g-intro-docs-list {
    padding-left: 0;
    list-style: none;
    margin: 0 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.g-intro-docs-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.83rem;
    color: #333;
    line-height: 1.3;
}

.g-intro-docs-list li em {
    display: block;
    font-size: 0.72rem;
    font-style: normal;
    color: #999;
    margin-top: 1px;
}

/* Coloured icon badges */
.g-doc-badge {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem;
    color: #fff;
}
.g-doc-photo      { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.g-doc-transcript { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.g-doc-cert       { background: linear-gradient(135deg, #10b981, #34d399); }
.g-doc-id         { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }

.g-intro-docs-note {
    font-size: 0.72rem;
    color: #999;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.g-intro-docs-note i { color: #d1aa66; }

/* ── Intro CTA button block ── */
.g-intro-cta-wrap {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.g-intro-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.95rem 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    background: linear-gradient(135deg, #c9973a 0%, #e8c46a 50%, #c9973a 100%);
    background-size: 200% auto;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 24px rgba(209,170,102,.5), 0 0 0 0 rgba(209,170,102,.4);
    animation: introBtnShimmer 3s linear infinite, introBtnPulse 2.4s ease-in-out infinite;
    transition: transform .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}

.g-intro-cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.22) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: introSheen 2.8s ease-in-out infinite;
}

.g-intro-cta-icon {
    font-size: 1.15rem;
    animation: introIconFloat 2s ease-in-out infinite;
    display: flex;
    align-items: center;
}

.g-intro-cta-text {
    flex: 1;
    text-align: center;
}

.g-intro-cta-arrow {
    font-size: 0.88rem;
    opacity: 0.75;
    display: flex;
    align-items: center;
    transition: transform .2s;
}

.g-intro-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(209,170,102,.6), 0 0 0 6px rgba(209,170,102,.12);
}

.g-intro-cta-btn:hover .g-intro-cta-arrow { transform: translateX(3px); }

.g-intro-cta-btn:active { transform: translateY(-1px); }

.g-intro-cta-sub {
    font-size: 0.72rem;
    color: #aaa;
    margin: 0;
    text-align: center;
}

@keyframes introBtnShimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes introBtnPulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(209,170,102,.5), 0 0 0 0 rgba(209,170,102,.4); }
    50%       { box-shadow: 0 6px 24px rgba(209,170,102,.5), 0 0 0 10px rgba(209,170,102,0); }
}

@keyframes introSheen {
    0%   { transform: translateX(-100%); }
    60%, 100% { transform: translateX(200%); }
}

@keyframes introIconFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-3px); }
}

/* Task 6 & 10 — Real-time field hints */
.g-field-hint { font-size: 0.78rem; margin-top: 0.3rem; }
.g-hint-ok  { color: #2e7d32; }
.g-hint-err { color: #c62828; }

/* Golda greeting quote on intro screen */
.g-intro-quote {
    margin: 0.65rem auto 0;
    max-width: 320px;
    font-size: 0.83rem;
    font-style: italic;
    color: #555;
    line-height: 1.55;
    text-align: center;
    border-left: none;
    padding: 0 0.5rem;
    quotes: "\201C" "\201D";
}
.g-intro-quote::before { content: open-quote;  color: #d1aa66; font-size: 1.1rem; }
.g-intro-quote::after  { content: close-quote; color: #d1aa66; font-size: 1.1rem; }

/* Fee badge in docs list */
.g-doc-fee-badge { background: linear-gradient(135deg, #d1aa66, #f0c96e); }

.g-doc-fee-item {
    background: linear-gradient(145deg, #fffaf0, #fff8e7);
    border: 1px solid rgba(209,170,102,.4);
    border-radius: 8px;
    padding: 0.3rem 0.5rem;
    margin-bottom: 0.15rem;
}

/* ── Intro resume saved-application section ── */
.g-intro-resume-wrap {
    margin-top: 1.1rem;
    width: 100%;
    max-width: 360px;
}

.g-intro-resume-trigger {
    width: 100%;
    background: #fff;
    border: 1.5px solid #d1aa66;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}
.g-intro-resume-trigger:hover {
    background: #fdf9f0;
    border-color: #b8923e;
    box-shadow: 0 3px 10px rgba(209,170,102,0.2);
}
.g-intro-resume-trigger-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fdf0d5, #fce8b2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: #b8923e;
}
.g-intro-resume-trigger-text {
    flex: 1;
}
.g-intro-resume-trigger-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
    line-height: 1.3;
}
.g-intro-resume-trigger-sub {
    font-size: 0.72rem;
    color: #6c757d;
    display: block;
    margin-top: 0.1rem;
}
.g-intro-resume-trigger-arrow {
    color: #d1aa66;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.g-intro-resume-trigger:hover .g-intro-resume-trigger-arrow {
    transform: translateX(3px);
}

.g-intro-resume-form {
    margin-top: 0.65rem;
    flex-direction: column;
    gap: 0;
    text-align: left;
    background: #fff;
    border: 1.5px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
}

/* Hide transcript until Start is clicked */
.g-transcript-hidden {
    visibility: hidden;
    pointer-events: none;
}

/* Full-screen intro mode */
.g-shell--intro .g-progress-wrap { display: none; }
.g-shell--intro .g-transcript    { display: none; }
.g-shell--intro .g-nav            { display: none; }
.g-shell--intro .g-action-wrap {
    flex: 1;
    max-height: none;
    overflow-y: auto;
    border-top: none;
}
/* Center intro content vertically in the expanded area */
.g-shell--intro #g-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 1.5rem 1.25rem;
}

/* ---------- Submitting notice ---------- */
.g-submitting-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    text-align: center;
    gap: 0.75rem;
}
.g-submitting-spinner {
    font-size: 2.5rem;
    color: #d1aa66;
    margin-bottom: 0.25rem;
}
.g-submitting-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}
.g-submitting-warn {
    font-size: 0.85rem;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 0.55rem 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---------- Email Typo Suggestion Widget ---------- */
.g-email-suggestion {
  display: flex; flex-direction: column; gap: 0.55rem;
  background: linear-gradient(135deg, #fdf9f0, #fef3d0);
  border: 1.5px solid #d1aa66; border-radius: 10px;
  padding: 0.75rem 1rem; margin-top: 0.5rem;
  animation: g-suggest-in 0.22s ease;
}
@keyframes g-suggest-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.g-email-suggestion-text {
  font-size: 0.82rem; color: #1a1a1a; line-height: 1.45; margin: 0;
}
.g-email-suggestion-text strong { font-weight: 700; }
.g-email-suggestion-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.g-email-suggest-btn {
  border: none; border-radius: 7px; padding: 0.38rem 0.85rem;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all 0.18s; white-space: nowrap;
}
.g-email-suggest-yes { background: #d1aa66; color: #1a1a1a; }
.g-email-suggest-yes:hover { background: #b8923e; }
.g-email-suggest-no { background: transparent; border: 1.5px solid #adb5bd; color: #495057; }
.g-email-suggest-no:hover { background: #f8f9fa; border-color: #6c757d; color: #1a1a1a; }
