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

:root {
    /* Base Variables (Light Mode) */
    --accent-primary: #6366f1;
    --accent-secondary: #0ea5e9;
    --accent-success: #10b981;
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-hero: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    
    --text-header: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --input-bg: #ffffff;
    
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] {
    --bg-main: #020617;
    --bg-card: #0f172a;
    --bg-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    
    --text-header: #f8fafc;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.03);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-main);
    color: var(--text-body);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-header);
    font-weight: 700;
}

/* --- Layout Elements --- */
.premium-hero {
    background: var(--bg-hero);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem; /* Reduced from 3rem */
    margin-bottom: 2rem; /* Reduced from 2.5rem */
    box-shadow: var(--shadow-sm);
}

.hero-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem; /* Reduced from 1rem */
}

.hero-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem); /* Reduced from 3rem */
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.hero-info {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- Premium Card --- */
.p-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.p-card:hover {
    box-shadow: var(--shadow-md);
}

/* --- Section Headers --- */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: white;
    border-radius: 12px;
    font-size: 1.2rem;
}

/* --- Forms Integration --- */
.form-floating > .form-control,
.form-floating > .form-select {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-body);
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-floating > label {
    color: var(--text-muted);
}

/* --- Buttons --- */
.p-btn {
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.p-btn-primary {
    background: var(--accent-primary);
    color: white !important;
}

.p-btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.p-btn-secondary {
    background: var(--bg-main);
    color: var(--text-body) !important;
    border: 1px solid var(--border-color);
}

.p-btn-secondary:hover {
    background: var(--border-color);
}

/* --- Theme Toggle --- */
.theme-toggle-wrap {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

/* --- Timeline --- */
.p-timeline {
    position: relative;
}

.p-timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 2rem;
}

.p-timeline-item::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 2rem;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.p-timeline-item:last-child::before { display: none; }

.p-t-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    z-index: 1;
}

.p-t-content {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
}

[data-bs-theme="dark"] .p-t-content {
    background: rgba(255, 255, 255, 0.02);
}

/* --- Type Selector (Radios) --- */
.type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.type-option input { display: none; }

.type-label {
    display: block;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.type-option input:checked + .type-label {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* --- Generic Tags & Helpers --- */
.req::after { content: ' *'; color: #ef4444; }
.reveal { animation: revealIn 0.5s ease backwards; }
@keyframes revealIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.p-footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}
