@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Share+Tech+Mono&display=swap');

/* MODERN LIGHT-MODE THEME FOR PUBLIC DIRECT APPLICATIONS */
:root {
    --bg-light: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-color: rgba(148, 163, 184, 0.15);
    --border-focus: #4f46e5;
    
    /* Elegant light accents */
    --accent-indigo: #4f46e5;
    --accent-blue: #0284c7;
    --accent-emerald: #059669;
    --accent-purple: #7c3aed;
    --accent-rose: #e11d48;
    
    /* High-contrast inner fonts */
    --text-title: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    
    --shadow-premium: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
    --shadow-focus: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.02) 0%, transparent 50%);
    color: var(--text-body);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* Container Frame */
.application-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 680px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Subtle glowing accent line on top */
.application-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-indigo), var(--accent-blue), var(--accent-purple));
}

/* Header section */
.portal-header {
    text-align: center;
    margin-bottom: 35px;
}

.portal-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-blue));
    color: var(--text-light);
    font-size: 24px;
    margin-bottom: 15px;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.3);
}

.portal-title {
    color: var(--text-title);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.portal-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 6px;
    line-height: 1.5;
}

/* Grid Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.grid-span-2 {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .form-grid > * {
        grid-column: span 2 !important;
    }
}

.input-label {
    display: block;
    color: var(--text-title);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.apply-input, .apply-select {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: var(--text-body);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-family: var(--font-sans);
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.01);
}

.apply-input:focus, .apply-select:focus {
    border-color: var(--accent-indigo);
    box-shadow: var(--shadow-focus);
}

/* Interactive custom range slider adjustments */
.slider-container {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 16px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.slider-val {
    font-family: var(--font-mono);
    color: var(--accent-indigo);
    font-weight: bold;
    font-size: 14px;
}

.apply-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    outline: none;
}

.apply-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-indigo);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
    transition: transform 0.1s ease;
}

.apply-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Solution Selector grid box */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 16px;
}

.solution-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-body);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.solution-checkbox-label input {
    accent-color: var(--accent-indigo);
    width: 16px;
    height: 16px;
}

/* Submit action button */
.btn-apply-submit {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
    color: var(--text-light);
    border: none;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.35);
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-apply-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -3px rgba(79, 70, 229, 0.45);
}

.btn-apply-submit:active {
    transform: translateY(0);
}

/* Receipt / Confirmation Screen style */
.receipt-layout {
    display: none;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.receipt-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(5, 150, 105, 0.1);
    color: var(--accent-emerald);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}

.receipt-code-box {
    margin: 20px auto;
    background: rgba(15, 23, 42, 0.03);
    border: 1px dashed var(--border-color);
    padding: 15px;
    border-radius: 12px;
    font-family: var(--font-mono);
    max-width: 250px;
}

.receipt-code-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.receipt-code-val {
    font-size: 20px;
    color: var(--text-title);
    font-weight: bold;
    margin-top: 4px;
}

.receipt-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.receipt-stat-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.receipt-stat-title {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.receipt-stat-val {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-indigo);
    margin-top: 2px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-indigo);
    color: var(--accent-indigo);
    box-shadow: none;
    margin-top: 15px;
}

.btn-secondary:hover {
    background: rgba(79, 70, 229, 0.05);
    box-shadow: none;
}

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