:root {
    --primary: #0b3954;
    --secondary: #087e8b;
    --accent: #bfd7ea;
    --highlight: #ff5a5f;
    --border-radius: 8px;
    --primary-color: #0b3954;
}

.hero {
    background: var(--primary);
    color: white;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.hero-section {
    text-align: center;
    padding: 6rem 2rem 5rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    background: linear-gradient(160deg, var(--primary) 0%, #0a4e6e 50%, var(--secondary) 100%);
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
}

.hero-section .subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.15rem;
    max-width: 520px;
    margin: 0 auto;
    font-weight: 400;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.hero-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--background-color);
    border: none;
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0% 100%);
}

.history-link-bar {
    text-align: center;
    margin: -1.25rem auto 2.5rem;
    position: relative;
    z-index: 2;
}

.history-link-bar a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    background: #fff;
    padding: 0.55rem 1.35rem;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.03),
        0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    font-weight: 500;
}

.history-link-bar a:hover {
    border-color: rgba(8, 126, 139, 0.2);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.03),
        0 8px 20px rgba(8, 126, 139, 0.06);
    transform: translateY(-1px);
    color: var(--secondary);
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }

    .hero-section {
        padding: 4rem 1.5rem 3.5rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .subtitle {
        font-size: 1rem;
    }
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.controls label {
    margin-right: 1rem;
    font-weight: bold;
}

.controls select,
.controls button {
    padding: 0.75rem 1rem;
    border-radius: 5px;
    border: 1px solid var(--secondary);
    margin-right: 1rem;
}

.controls select {
    width: 200px;
}

.controls button {
    background-color: var(--secondary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.controls button:hover {
    background-color: var(--highlight);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.search-container{
    padding: 0
}

.grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
}

.results-banner {
    width: 100%;
    background-color: var(--accent);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.results-banner h2 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.subject-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.subject-pill {
    background-color: white;
    padding: 0.3rem 0.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subject-pill .grade {
    background-color: var(--primary);
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.75rem;
}

.card {
    height: fit-content;
    border-radius: var(--border-radius);
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 16px rgba(11, 57, 84, 0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.card ul {
    list-style-type: none;
    padding: 0;
}

.card li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.container li::before {
    /* content: '✓'; */
    color: var(--highlight);
    margin-right: 0.5rem;
}

form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.checkbox-group {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    align-items: flex-start;
    background: linear-gradient(to right, rgba(191, 215, 234, 0.1), rgba(8, 126, 139, 0.1));
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--accent);
    /* margin: 1rem 0; */
    transition: all 0.3s ease;
}

.checkbox-group:hover {
    background: linear-gradient(to right, rgba(191, 215, 234, 0.2), rgba(8, 126, 139, 0.15));
    transform: translateY(-1px);
}

.checkbox-wrapper {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.checkbox-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.checkbox-content label {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.checkbox-helper {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}

input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    accent-color: var(--secondary);
}

input[type="checkbox"]:checked {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

@media (max-width: 768px) {
    .checkbox-group {
        padding: 1rem;
    }
    
    .checkbox-wrapper {
        gap: 0.75rem;
    }
    
    .checkbox-content label {
        font-size: 0.95rem;
    }
    
    .checkbox-helper {
        font-size: 0.85rem;
    }
}

#status-message {
    grid-column: 1 / -1;
}

button[type="submit"] {
    grid-column: 1 / -1;
    max-width: 300px;
    justify-self: center;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(8, 126, 139, 0.2);
    transition: all 0.3s ease;
}

button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(8, 126, 139, 0.3);
}

button[type="submit"]:disabled {
    background: linear-gradient(135deg, #cbd5e0, #e2e8f0);
    cursor: not-allowed;
}

#more-filters {
    display: none;
}

#more-filters.show {
    display: block;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeIn 0.5s;
}

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

label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

select,
input[type="range"],
input[type="number"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    color: var(--primary);
}

select:hover,
input[type="range"]:hover,
input[type="number"]:hover {
    border-color: var(--secondary);
}

select:focus,
input[type="range"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 57, 84, 0.1);
}

input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.5);
    cursor: pointer;
}

button {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3730a3;
}

#loading {
    text-align: center;
}

.spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid rgba(67, 56, 202, 0.3);
    border-radius: 50%;
    border-top-color: #4338ca;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.results-showcase {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.results-showcase a {
    margin-top: .5em;
    border: none;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    max-width: 150px;
    background-color: var(--primary);
    padding: .5em;
}

.edit-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.edit-link:hover {
    background-color: var(--secondary);
    transform: translateY(-1px);
}

.subject-type-label {
    font-weight: bold;
    color: var(--primary);
    width: 100%;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--accent);
}

.form-section-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.form-section-divider::before,
.form-section-divider::after {
    content: '';
    height: 1px;
    background: var(--accent);
    flex: 1;
}

.form-section-divider span {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.form-group.required label::after {
    content: '*';
    color: var(--highlight);
    margin-left: 4px;
}

.helper-text {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: -0.5rem;
}

.primary-field {
    background-color: white;
}

.optional-field {
    background-color: rgba(255, 255, 255, 0.5);
}

.optional-field:hover {
    background-color: white;
}

@media (max-width: 768px) {
    .container h1 {
        font-size: 2rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    form {
        grid-template-columns: 1fr;
    }

    #filter-area {
        order: 1;
    }

    .form-section-divider {
        margin: 0.5rem 0;
    }

    .form-group {
        margin-bottom: 0.5rem;
    }
}

.alert-success {
    background: linear-gradient(to right, #d4edda, #c3e6cb);
    border: none;
    box-shadow: 0 2px 8px rgba(21, 87, 36, 0.1);
    padding: 0.75rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.optional-filters-section {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.optional-filters-section.expanded {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    opacity: 1;
    transform: translateY(0);
}

.filters-toggle {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px dashed var(--accent);
    color: var(--primary);
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filters-toggle:hover {
    background: var(--accent);
    border-style: solid;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.filters-toggle.expanded .toggle-icon {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .optional-filters-section.expanded {
        grid-template-columns: 1fr;
    }
    
    .filters-toggle {
        margin: 1rem 0;
    }
}

.alert {
    border-radius: 12px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.alert-info {
    background: linear-gradient(to right, rgba(191, 215, 234, 0.2), rgba(8, 126, 139, 0.1));
    border-left: 4px solid var(--secondary);
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
}

.alert-icon {
    color: var(--secondary);
    flex-shrink: 0;
    padding-top: 0.25rem;
}

.alert-content {
    flex: 1;
}

.alert-content h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
}

.alert-content p {
    color: var(--primary);
    font-size: 0.95rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.alert-content ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.alert-content ul li {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

.alert-content ul li::before {
    content: "•";
    color: var(--secondary);
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .alert-info {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .alert-icon {
        padding-top: 0;
    }

    .alert-content h4 {
        font-size: 1rem;
    }

    .alert-content p {
        font-size: 0.9rem;
    }
}

/* University Selection Styles */
.university-selection-section {
    margin-bottom: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #8896a6;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
    font-weight: 400;
}

/* University Search */
.university-search-wrapper {
    height: 0;
    position: relative;
}

.sticky-search-wrap {
    position: sticky;
    top: calc(var(--nav-height, 70px) + 0.75rem);
    z-index: 15;
    padding: 0.75rem 0 1rem;
    background: linear-gradient(to bottom, var(--background-color, #fff) 70%, transparent);
}

.university-search-container {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.03),
        0 4px 16px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.university-search-container:focus-within {
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.03),
        0 8px 32px rgba(8, 126, 139, 0.1),
        0 0 0 1px rgba(8, 126, 139, 0.12);
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 0.5rem;
}

.university-search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 0.95rem;
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    background: #fafbfc;
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    outline: none;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.university-search-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.university-search-input:focus {
    border-color: rgba(8, 126, 139, 0.3);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(8, 126, 139, 0.06);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #b0bec5;
    width: 18px;
    height: 18px;
    transition: color 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.university-search-input:focus ~ .search-icon {
    color: var(--secondary);
}

.search-meta {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Universities Grid */
.universities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* University Card — Double-Bezel */
.university-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 1.5rem;
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.03),
        0 4px 12px rgba(0, 0, 0, 0.03);
}

.university-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(8, 126, 139, 0.03), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    pointer-events: none;
}

.university-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.03),
        0 12px 32px rgba(8, 126, 139, 0.08);
    border-color: rgba(8, 126, 139, 0.2);
}

.university-card:hover::before {
    opacity: 1;
}

.university-card.selected {
    border-color: rgba(8, 126, 139, 0.3);
    background: rgba(8, 126, 139, 0.02);
    box-shadow:
        0 0 0 3px rgba(8, 126, 139, 0.08),
        0 8px 24px rgba(8, 126, 139, 0.1);
}

.university-card.selected::before {
    opacity: 1;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.university-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.university-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.university-abbr {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(8, 126, 139, 0.08);
    color: var(--secondary);
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.university-stats {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.location-info,
.programs-count {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: #7a8696;
    font-weight: 500;
}

.location-info svg,
.programs-count svg {
    width: 15px;
    height: 15px;
    color: var(--secondary);
    flex-shrink: 0;
}

.card-action {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.02);
    color: #c8d0da;
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 2;
}

.university-card:hover .card-action {
    color: var(--secondary);
    background: rgba(8, 126, 139, 0.06);
    transform: translateX(2px);
}

.university-card.selected .card-action {
    color: var(--secondary);
    background: rgba(8, 126, 139, 0.08);
}

/* Selected University Display */
.selected-university-display {
    background: rgba(8, 126, 139, 0.05);
    border: 1px solid rgba(8, 126, 139, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.selected-university-info h3 {
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.selected-university-name {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Results Confirmation Section */
.results-confirmation-section {
    margin-bottom: 3rem;
}

.results-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.confirm-results-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.confirm-results-btn:hover {
    background: #0a6b77;
    transform: translateY(-1px);
}

.no-results-message {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--accent);
    border-radius: 12px;
    border: 1px solid rgba(11, 57, 84, 0.1);
}

.no-results-message h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.no-results-message p {
    color: var(--primary);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.add-results-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.add-results-btn:hover {
    background: #094462;
    text-decoration: none;
    color: white;
}

/* Submit Section */
.submit-section {
    margin-bottom: 3rem;
}

.confirmation-summary {
    background: var(--accent);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(11, 57, 84, 0.1);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-label {
    color: var(--primary);
    font-weight: 500;
}

.summary-value {
    color: var(--primary);
    font-weight: 600;
}

/* Results Review Section */
.results-review-section {
    background: var(--accent);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(11, 57, 84, 0.1);
}

.results-review-section h3 {
    color: var(--primary);
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.review-subtitle {
    color: var(--primary);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.subject-type-section {
    margin-bottom: 1.25rem;
}

.subject-type-section:last-of-type {
    margin-bottom: 0;
}

.results-meta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(11, 57, 84, 0.15);
}

.results-meta p {
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 0.9rem;
}

.results-meta .warning {
    color: var(--error);
    font-weight: 500;
}

.confirmation-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-weight: 500;
    margin-top: 1rem;
}

.confirmation-text svg {
    color: var(--secondary);
}

.edit-results-link {
    margin-top: 1rem;
    text-align: center;
}

.edit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(11, 57, 84, 0.05);
    transition: all 0.2s ease;
}

.edit-link:hover {
    background: rgba(11, 57, 84, 0.1);
    text-decoration: none;
    color: var(--primary);
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.primary-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(8, 126, 139, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 280px;
}

.primary-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 126, 139, 0.4);
}

.primary-submit-btn:disabled {
    background: linear-gradient(135deg, #cbd5e0, #e2e8f0);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-icon {
    transition: transform 0.2s ease;
}

.primary-submit-btn:hover:not(:disabled) .btn-icon {
    transform: translateX(2px);
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.secondary-link:hover {
    color: var(--primary);
    text-decoration: none;
    transform: translateX(2px);
}

/* No universities message */
.no-universities-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
}

.no-universities-message h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.no-universities-message p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .universities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .university-card {
        padding: 1.25rem;
        border-radius: 20px;
    }
    
    .university-search-input {
        padding: 0.8rem 0.875rem 0.8rem 2.75rem;
        font-size: 0.9rem;
    }
    
    .search-icon {
        left: 0.875rem;
    }

    .sticky-search-wrap {
        top: calc(var(--nav-height, 70px) + 0.35rem);
        padding: 0.5rem 0 0.75rem;
    }
    
    .university-search-container,
    .program-search-wrapper {
        padding: 0.75rem 1rem;
    }
    
    .primary-submit-btn {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }
    
    .confirm-results-btn,
    .add-results-btn {
        width: 100%;
        max-width: 100%;
    }
    
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .university-name {
        font-size: 1.1rem;
    }
    
    .university-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .card-action {
        top: 1rem;
        right: 1rem;
        width: 28px;
        height: 28px;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .university-search-container {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}

/* ================================================================
   MULTI-STEP WIZARD — Premium Redesign
   ================================================================ */

.section-eyebrow {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--secondary);
    background: rgba(8, 126, 139, 0.08);
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

/* Step Indicator */
.checker-step-indicator {
    display: none;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    cursor: default;
    position: relative;
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid #e5e7eb;
    color: #b0b8c4;
    background: #fff;
    transition: all 0.7s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.step-item.active .step-circle {
    border-color: var(--secondary);
    background: var(--secondary);
    color: #fff;
    box-shadow:
        0 0 0 4px rgba(8, 126, 139, 0.12),
        0 4px 12px rgba(8, 126, 139, 0.2);
    transform: scale(1.08);
}

.step-item.completed .step-circle {
    border-color: var(--secondary);
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(8, 126, 139, 0.15);
}

.step-item.completed .step-num { display: none; }
.step-item.completed .step-check { display: inline-block !important; }
.step-item.active .step-check { display: none !important; }
.step-item.active .step-num { display: inline; }

.step-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #b0b8c4;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.step-item.active .step-label,
.step-item.completed .step-label {
    color: var(--primary);
}

.step-connector {
    flex: 1;
    height: 2px;
    background: #e8ecf0;
    margin: 0 0.5rem;
    min-width: 32px;
    position: relative;
    top: -8px;
    border-radius: 2px;
    transition: background 0.7s cubic-bezier(0.32, 0.72, 0, 1);
}

.step-item.completed + .step-connector {
    background: var(--secondary);
}

/* Step Panels */
.step-panel {
    display: none;
    animation: wizardFadeIn 0.6s cubic-bezier(0.32, 0.72, 0, 1);
}

.step-panel.active {
    display: block;
}

@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateY(20px); filter: blur(4px); }
    to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* Program Selection */
.program-search-wrapper {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Program Card — exactly matches university card structure */
.step-panel .program-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.03),
        0 4px 12px rgba(0, 0, 0, 0.03);
    display: block;
    animation: none;
}

.step-panel .program-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(8, 126, 139, 0.03), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    pointer-events: none;
}

.step-panel .program-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.03),
        0 12px 32px rgba(8, 126, 139, 0.08);
    border-color: rgba(8, 126, 139, 0.2);
}

.step-panel .program-card:hover::before { opacity: 1; }

.step-panel .program-card.selected {
    border-color: rgba(8, 126, 139, 0.3);
    background: rgba(8, 126, 139, 0.02);
    box-shadow:
        0 0 0 3px rgba(8, 126, 139, 0.08),
        0 8px 24px rgba(8, 126, 139, 0.1);
}

.step-panel .program-card .card-content {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    z-index: 2;
}

.program-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.program-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.program-badge {
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    letter-spacing: 0.03em;
}

.program-badge-degree {
    background: rgba(11, 57, 84, 0.06);
    color: var(--primary);
}

.program-card-field {
    font-size: 0.8rem;
    color: #8896a6;
    line-height: 1.4;
    position: relative;
    z-index: 2;
    padding-left: 0.65rem;
    border-left: 2px solid rgba(8, 126, 139, 0.15);
    margin-top: 0.15rem;
}

.step-panel .program-card .card-action {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.02);
    color: #c8d0da;
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 2;
}

.step-panel .program-card:hover .card-action {
    color: var(--secondary);
    background: rgba(8, 126, 139, 0.06);
    transform: translateX(2px);
}

.step-panel .program-card.selected .card-action {
    color: var(--secondary);
    background: rgba(8, 126, 139, 0.08);
}

.empty-programs-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    border: 1.5px dashed rgba(0, 0, 0, 0.08);
    color: #94a3b8;
}

/* Bottom Navigation */
.step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    margin-top: 3rem;
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, var(--background-color, #fff) 60%, transparent);
    z-index: 10;
}

.step-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    border: none;
    letter-spacing: 0.01em;
}

.step-nav-back {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
}

.step-nav-back:hover {
    border-color: rgba(8, 126, 139, 0.25);
    color: var(--secondary);
    background: rgba(8, 126, 139, 0.03);
}

.step-nav-next {
    background: var(--primary);
    color: #fff;
    box-shadow:
        0 2px 8px rgba(11, 57, 84, 0.2),
        0 8px 24px rgba(11, 57, 84, 0.15);
}

.step-nav-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(11, 57, 84, 0.25),
        0 16px 40px rgba(11, 57, 84, 0.2);
}

.step-nav-next:active:not(:disabled) {
    transform: scale(0.97);
}

.step-nav-next:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.step-nav-dots {
    display: flex;
    gap: 0.35rem;
}

.step-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dde2e8;
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.step-dot.active {
    background: var(--secondary);
    width: 22px;
    border-radius: 100px;
}

/* Confirmation Section */
.confirm-section {
    max-width: 580px;
    margin: 0 auto;
}

/* Confirm Card — Double-Bezel */
.confirm-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 28px;
    padding: 2rem;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.02),
        0 8px 32px rgba(0, 0, 0, 0.04);
    margin-bottom: 2.5rem;
}

.confirm-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(8, 126, 139, 0.02), transparent 50%);
    pointer-events: none;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
}

.confirm-row:last-of-type {
    border-bottom: none;
}

.confirm-row-cost {
    border-bottom: none;
    padding-top: 1.25rem;
    margin-top: 0.5rem;
    border-top: 1.5px solid rgba(8, 126, 139, 0.12);
}

.confirm-label {
    font-size: 0.85rem;
    color: #8896a6;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.confirm-value {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    text-align: right;
    letter-spacing: -0.01em;
}

.confirm-row-cost .confirm-value {
    color: var(--secondary);
    font-size: 1.15rem;
    font-weight: 700;
}

/* Check Eligibility Button — Button-in-Button */
.check-eligibility-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow:
        0 2px 8px rgba(11, 57, 84, 0.2),
        0 12px 36px rgba(11, 57, 84, 0.18);
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    max-width: 380px;
    margin: 0 auto;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.check-eligibility-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 60%);
    pointer-events: none;
}

.check-eligibility-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 4px 12px rgba(11, 57, 84, 0.25),
        0 20px 48px rgba(11, 57, 84, 0.22);
    color: #fff;
    text-decoration: none;
}

.check-eligibility-btn:active {
    transform: scale(0.97);
}

.check-eligibility-btn .btn-text {
    position: relative;
    z-index: 1;
}

.check-eligibility-btn .btn-icon {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.check-eligibility-btn:hover .btn-icon {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.18);
}

.check-eligibility-btn.loading {
    pointer-events: none;
    opacity: 0.85;
    transform: none;
    box-shadow: 0 4px 12px rgba(11, 57, 84, 0.12);
}

.check-eligibility-btn.loading .btn-icon {
    transform: none;
}

.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .checker-step-indicator {
        max-width: 100%;
        padding: 1rem 1.25rem;
        border-radius: 100px;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .step-connector {
        min-width: 16px;
        margin: 0 0.3rem;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .step-panel .program-card {
        padding: 1.1rem;
        border-radius: 20px;
    }

    .confirm-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .confirm-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .confirm-value {
        text-align: left;
    }

    .step-nav {
        padding: 1rem 0.5rem;
    }

    .step-nav-btn {
        padding: 0.6rem 1.1rem;
        font-size: 0.85rem;
    }

    .check-eligibility-btn {
        width: 100%;
        max-width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .sticky-search-wrap {
        top: calc(var(--nav-height, 70px) + 0.5rem);
    }
}

@media (max-width: 480px) {
    .step-nav-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
    }

    .checker-step-indicator {
        padding: 0.75rem 1rem;
    }

    .step-panel .program-card {
        padding: 1rem;
        border-radius: 16px;
    }
}