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

:root {
    --primary: #FF5A1F;
    --primary-hover: #e54e1a;
    --bg-light: #F9FAFB;
    --card-bg: #FFFFFF;
    --text-main: #111827;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --success: #10B981;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

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

.header img {
    max-width: 280px; /* Increased from 180px */
    margin-bottom: 20px;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

.header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: -4px;
    margin-bottom: 12px;
    display: block;
}

.hidden {
    display: none;
}

/* Form Card */
.form-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-indicator {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
    font-weight: 500;
}

/* Form Steps */
.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

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

/* Inputs */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.1);
}

/* Options (Radio/Checkbox) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    gap: 12px;
}

@media (min-width: 480px) {
    .options-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.option-item {
    position: relative;
}

.option-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-label {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 56px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
}

.option-item input:checked + .option-label {
    border-color: var(--primary);
    background-color: rgba(255, 90, 31, 0.08);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 90, 31, 0.1);
}

.option-label:hover {
    border-color: var(--primary);
}

/* Buttons */
.btn-container {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    margin-top: 32px;
}

@media (min-width: 480px) {
    .btn-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.btn {
    padding: 16px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    border: none;
    text-align: center;
    width: 100%;
}

@media (min-width: 480px) {
    .btn {
        width: auto;
    }
}

.btn-primary {
    background: var(--primary);
    color: white;
}

@media (min-width: 480px) {
    .btn-primary {
        flex: 1;
        margin-left: 10px;
    }
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(255, 90, 31, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-muted);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    color: var(--text-main);
}

/* --- Admin Layout (Advanced Responsiveness) --- */
.admin-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sidebar for Desktop */
.sidebar {
    display: none; /* Hidden by default on mobile */
    background: #111827;
    color: white;
    padding: 30px 20px;
}

/* Bottom Nav for Mobile */
.bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111827;
    padding: 10px 5px;
    justify-content: space-around;
    z-index: 1000;
    border-top: 1px solid #1f2937;
}

.bottom-nav a, .sidebar a {
    color: #9ca3af;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    gap: 4px;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.2s;
}

.bottom-nav a i, .sidebar a i {
    font-size: 1.2rem;
}

.bottom-nav a.active, .sidebar a.active {
    color: white;
    background: #1f2937;
}

.bottom-nav a.active i, .sidebar a.active i {
    color: var(--primary);
}

@media (min-width: 768px) {
    .admin-layout {
        flex-direction: row;
    }
    .bottom-nav {
        display: none;
    }
    .sidebar {
        display: block;
        width: 260px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex-shrink: 0;
    }
    .sidebar h2 {
        font-size: 1.4rem;
        color: var(--primary);
        margin-bottom: 40px;
        text-align: left;
    }
    .sidebar a {
        flex-direction: row;
        font-size: 0.95rem;
        gap: 12px;
        padding: 14px 20px;
        margin-bottom: 8px;
    }
    .sidebar a i {
        font-size: 1.1rem;
    }
}

.main-content {
    flex: 1;
    padding: 20px;
    padding-bottom: 80px; /* Space for bottom nav */
}

@media (min-width: 768px) {
    .main-content {
        padding: 40px;
        padding-bottom: 40px;
    }
}

/* Admin Cards & Stats */
.admin-header {
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 1.5rem;
    color: var(--text-main);
}

.admin-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    border: 1px solid #f3f4f6;
    margin-bottom: 24px;
    overflow: hidden; /* Prevent child overflow */
}

/* Fix table breaking mobile */
table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

th, td {
    word-break: break-word;
    overflow-wrap: break-word;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

@media (min-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* --- Form Footer & Social Links --- */
.form-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.form-footer p {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    color: #6b7280;
    font-size: 1.2rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-decoration: none;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 90, 31, 0.2);
}
