/* Dawnlit College Finder - Sleek Interface Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-page: #f8f6f1;
  --bg-app: #ffffff;
  --accent-gold: #f5a623;
  --accent-gold-light: #fffbf0;
  --navy: #0a0f1e;
  --text-body: #374151;
  --text-muted: #6b7280;
  --border: #e5e0d8;
  --success: #10b981;
  --error: #ef4444;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Responsive Container Logic */
.app-wrapper {
  width: 100%;
  min-height: 100vh;
  background: var(--bg-app);
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--bg-page);
        padding: 40px 0;
    }
    .app-wrapper {
        max-width: 680px;
        min-height: 90vh;
        height: auto;
        border-radius: 40px;
        box-shadow: var(--shadow-premium);
        overflow: hidden;
    }
}

/* Progress Bar */
.progress-container {
  height: 4px;
  background: var(--border);
  z-index: 1000;
  width: 100%;
}

.progress-bar {
  height: 100%;
  background: var(--accent-gold);
  width: 0%;
  transition: width 0.4s ease;
}

/* Header Branding */
.app-header {
  padding: 24px 24px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--navy);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
    font-size: 18px;
}

.brand-name {
    color: var(--navy);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: -0.02em;
}

.step-indicator {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Form Container */
.form-content {
  padding: 24px 24px 120px; /* Padding bottom for fixed footer */
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Steps Transition */
.step {
  display: none;
  animation: fadeIn 0.3s ease-out forwards;
}

.step.active {
  display: block;
}

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

/* Typography */
.heading {
  font-size: 28px;
  margin-bottom: 8px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.subheading {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Tap Cards */
.card-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Tablet / Desktop Grid expansions */
@media (min-width: 768px) {
    .card-grid[data-grid="levels"] {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .card-grid[data-grid="categories"] {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .card-grid[data-grid="categories"] {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

.tap-card {
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tap-card:hover {
  border-color: var(--accent-gold);
  background: var(--accent-gold-light);
}

.tap-card.selected {
  border: 2px solid var(--accent-gold);
  background: var(--accent-gold-light);
}

.tap-card.selected::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  background: var(--accent-gold);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.card-emoji { font-size: 32px; margin-bottom: 12px; display: block; }
.card-title { font-weight: 700; font-size: 15px; color: var(--navy); margin-bottom: 4px; display: block; }
.card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.3; margin-top: auto; }

/* Chips */
.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.chip {
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: white;
    color: var(--text-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.chip:hover {
    border-color: var(--accent-gold);
}

.chip.selected {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: white;
}

.chip-anywhere {
    width: 100%;
    text-align: center;
    font-size: 15px;
    padding: 12px;
    margin-bottom: 8px;
}

/* Course Drawer / Card */
#drawerOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 30, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Course Drawer Styles - Moved to JS but keeping shared utility classes */
.drawer-backdrop {
    display: none;
}

.course-container {
    display: none;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.course-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-header h3 { color: var(--navy); font-weight: 800; font-size: 18px; }

.search-box {
    padding: 16px 24px;
}

#courseList {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 24px;
}

.course-row {
    padding: 16px;
    border-bottom: 1px solid var(--bg-page);
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.course-row:hover { background: var(--bg-page); }

.course-radio {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
    transition: all 0.2s ease;
}

.course-row.selected .course-radio {
    border-color: var(--accent-gold);
    background: var(--accent-gold);
}

.course-row.selected .course-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.course-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

/* Navigation Footer */
.nav-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  z-index: 1500;
}

@media (min-width: 1024px) {
    .nav-footer {
        left: 50%;
        transform: translateX(-50%);
        max-width: 680px;
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }
}

.btn {
  height: 52px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary { 
    background: var(--accent-gold); 
    color: white; 
    flex: 2;
    box-shadow: 0 4px 6px -1px rgba(245, 166, 35, 0.2);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(245, 166, 35, 0.3);
}
.btn-primary:disabled { 
    background: var(--border); 
    box-shadow: none;
    cursor: not-allowed; 
}
.btn-back { 
    background: white; 
    color: var(--navy); 
    border: 1px solid var(--border);
    flex: 1;
}

/* Inputs */
.input-group { margin-bottom: 24px; }
.label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--navy); text-transform: uppercase; letter-spacing: 0.05em; }
.input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  background: white;
}
.input:focus { 
    border-color: var(--accent-gold); 
}

.error-msg { font-size: 11px; color: var(--error); margin-top: 4px; display: none; }

/* Summary Card */
.summary-card {
  background: var(--navy);
  color: white;
  padding: 24px;
  border-radius: 20px;
  margin-top: 24px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
}

.summary-label { opacity: 0.5; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.summary-val { font-weight: 600; font-size: 14px; }
