/* ===== AGENT-SOKNAD.CSS — Søknadsside for LexiAgent ===== */

/* ===== BODY & PAGE BACKGROUND ===== */
body:has(.ags-section) { background: #000 !important; }
body:has(.ags-section) .iso-page { background: #000; }
[data-theme="light"] body:has(.ags-section) { background: #fff !important; }
[data-theme="light"] body:has(.ags-section) .iso-page { background: #fff; }

/* ===== SECTION ===== */
.ags-section { padding: 100px 24px 80px; }

/* ===== CENTERED LAYOUT ===== */
.ags-center { max-width: 760px; margin: 0 auto; }

/* Title centered */
.ags-title { text-align: center; margin-bottom: 2rem; }
.ags-title h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 0.75rem;
    line-height: 1.15;
}
.ags-title p { font-size: 1.05rem; line-height: 1.7; color: var(--iso-text, #94a3b8); margin: 0; }

/* Info row */
.ags-info-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Features */
.ags-feature { display: flex; align-items: flex-start; gap: 12px; }
.ags-feature-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, rgba(96,165,250,.12), rgba(52,211,153,.08));
    display: flex; align-items: center; justify-content: center;
    color: #60a5fa; flex-shrink: 0;
}
[data-theme="light"] .ags-feature-icon { color: #3b82f6; }
.ags-feature strong { display: block; font-size: 0.85rem; font-weight: 600; color: #e2e8f0; margin-bottom: 2px; }
.ags-feature span { font-size: 0.8rem; color: #64748b; line-height: 1.4; }
[data-theme="light"] .ags-feature strong { color: #1e293b; }

/* ===== FORM CARD (bokser) ===== */
.ags-form-card {
    background: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 16px;
    padding: 2.5rem;
}
[data-theme="light"] .ags-form-card {
    background: #dbeafe;
    border-color: #93c5fd;
}
.ags-form-card h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #0f172a;
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(15,23,42,0.15);
}
[data-theme="light"] .ags-form-card h2 { color: #0f172a; border-bottom-color: #93c5fd; }

/* Form rows */
.ags-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ags-flex { flex: 1; }

/* Form controls */
.ags-form-card .form-group { margin-bottom: 1rem; }
.ags-form-card label:not(.ags-check-label):not(.ags-file-label) {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
[data-theme="light"] .ags-form-card label:not(.ags-check-label):not(.ags-file-label) { color: #0f172a; }
.ags-form-card .form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #1e293b;
    background: #0f172a;
    color: #f1f5f9;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}
.ags-form-card .form-control:focus {
    border-color: #60a5fa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}
[data-theme="light"] .ags-form-card .form-control {
    background: #fff;
    border-color: #cbd5e1;
    color: #1e293b;
}
[data-theme="light"] .ags-form-card .form-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Dropdown: sort tekst i mørk modus */
.ags-form-card select.form-control { cursor: pointer; }
.ags-form-card select.form-control option {
    background: #0f172a;
    color: #f1f5f9;
}
[data-theme="light"] .ags-form-card select.form-control option {
    background: #fff;
    color: #1e293b;
}

.ags-form-card textarea.form-control { resize: vertical; min-height: 80px; }
.ags-form-card .form-text { font-size: 0.72rem; color: #64748b; margin-top: 4px; display: block; }

/* File input — custom styled */
.ags-file-hidden { display: none; }
.ags-file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.ags-file-label:hover { border-color: #60a5fa; }
[data-theme="light"] .ags-file-label { background: #fff; border-color: #cbd5e1; }
.ags-file-btn {
    display: inline-block;
    background: none;
    color: #93c5fd;
    padding: 0;
    border-radius: 0;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
[data-theme="light"] .ags-file-btn { color: #3b82f6; }
.ags-file-name { font-size: 0.82rem; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Checkboxes */
.ags-checks { margin: 1.25rem 0; display: flex; flex-direction: column; gap: 8px; }
.ags-check-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: #0f172a;
    cursor: pointer;
    line-height: 1.4;
}
.ags-check-label a { color: #93c5fd; text-decoration: none; }
.ags-check-label a:hover { text-decoration: underline; }
[data-theme="light"] .ags-check-label { color: #475569; }
[data-theme="light"] .ags-check-label a { color: #3b82f6; }

/* Submit button */
.ags-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Hidden field */
.agent-hidden { display: none !important; }

/* ===== CONFIRMATION ===== */
.ags-confirm-section { padding: 120px 24px 80px; display: flex; justify-content: center; }
.ags-confirm-card {
    max-width: 560px;
    text-align: center;
    background: rgba(30, 30, 55, 0.5);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(12px);
}
[data-theme="light"] .ags-confirm-card {
    background: #f0f4ff;
    border-color: #d1d5db;
}
.ags-confirm-icon { color: #34d399; margin-bottom: 1.5rem; }
.ags-confirm-card h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 1rem;
}
.ags-confirm-body { font-size: 1.05rem; line-height: 1.7; color: #94a3b8; margin: 0 0 1.5rem; }
[data-theme="light"] .ags-confirm-body { color: #475569; }

.ags-confirm-ref {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.15);
    margin-bottom: 1.5rem;
}
.ags-confirm-ref span { font-size: 0.85rem; color: #94a3b8; }
.ags-confirm-ref strong { font-family: 'Oswald', sans-serif; font-size: 1.1rem; color: #93c5fd; }

.ags-confirm-note { font-size: 0.9rem; color: #64748b; line-height: 1.6; margin: 0 0 2rem; }

.ags-confirm-actions { display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.ags-confirm-link { font-size: 0.9rem; color: #93c5fd; text-decoration: none; }
.ags-confirm-link:hover { text-decoration: underline; }
[data-theme="light"] .ags-confirm-link { color: #3b82f6; }

/* ===== DUPLICATE VIEW ===== */
.ags-confirm-icon--warn { color: #f59e0b; }
.ags-dup-actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}
.ags-dup-option {
    display: flex;
    flex-direction: column;
}
.ags-dup-option h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #e2e8f0;
    margin: 0 0 0.5rem;
}
[data-theme="light"] .ags-dup-option h3 { color: #1e293b; }
.ags-dup-option p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 0 auto;
    padding-bottom: 1rem;
}
[data-theme="light"] .ags-dup-option p { color: #64748b; }
.ags-dup-option .ag-cta-green {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 14px 24px;
    font-size: 0.9rem;
}
.ags-dup-divider {
    width: 1px;
    background: rgba(96, 165, 250, 0.15);
    align-self: stretch;
}
[data-theme="light"] .ags-dup-divider { background: #e2e8f0; }
.ags-dup-option button { border: none; cursor: pointer; width: 100%; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .ags-info-row { grid-template-columns: 1fr; gap: 0.75rem; }
    .ags-row { grid-template-columns: 1fr; }
    .ags-form-card { padding: 1.5rem; }
    .ags-title h1 { font-size: 1.8rem; }
}
@media (max-width: 600px) {
    .ags-dup-actions { grid-template-columns: 1fr; }
    .ags-dup-divider { width: 100%; height: 1px; }
}
@media (max-width: 480px) {
    .ags-confirm-card { padding: 2rem; }
}
