/* K12 Search Start Page - LoveForm-Inspired Styling */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f7f7f7;
    color: #222;
}

/* Navigation */
.navbar {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #2AC8C8;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #222;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #2AC8C8;
}

/* Hero Section - LoveForm-style compact spacing */
.hero,
.hero-section {
    background: linear-gradient(135deg, #2ac8c8 0%, #289a96 100%);
    color: white;
    padding: 24px 20px 28px; /* Tight top (24px), balanced bottom (28px) */
    text-align: center;
}

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

.hero h1 {
    font-size: 48px;
    margin-bottom: 12px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 16px; /* Reduced from 40px - LoveForm-style tight spacing */
    opacity: 0.95;
}

/* Search Form */
.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    margin: 0 auto;
}

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

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    color: #222;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #2AC8C8;
    box-shadow: 0 0 0 3px rgba(42, 200, 200, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.date-input {
    cursor: pointer;
}

/* Address Input */
.address-input-wrapper {
    position: relative;
}

.address-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Kids Selector */
.kids-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
}

.kids-button:hover {
    background-color: #f7f7f7;
}

.dropdown-arrow {
    font-size: 10px;
    color: #999;
}

.kids-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    min-width: 320px;
}

.grades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.grade-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.grade-selector label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 0;
}

.counter {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 4px;
}

.counter-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.counter-btn:hover {
    background-color: #f0f0f0;
}

.counter-value {
    width: 30px;
    text-align: center;
    border: none;
    background: white;
    font-weight: 600;
    font-size: 16px;
}

/* Search Button */
.btn-search {
    grid-column: 1 / -1;
    padding: 12px 24px;
    background: #2AC8C8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-search:hover {
    background-color: #289A96;
}

.btn-search:active {
    transform: scale(0.98);
}

.search-icon {
    font-size: 18px;
}

/* Browse Labels Section */
.browse-labels {
    background: white;
    padding: 60px 20px;
}

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

.browse-labels h2 {
    font-size: 32px;
    margin-bottom: 32px;
    text-align: center;
    color: #222;
}

.labels-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.labels-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 100%;
}

.label-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.label-category {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-left: 8px;
}

.label-scroll-inner {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
}

.label-btn {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
    text-align: center;
}

.label-btn:hover {
    border-color: #2AC8C8;
    box-shadow: 0 2px 8px rgba(42, 200, 200, 0.1);
    transform: translateY(-2px);
}

.label-icon {
    font-size: 28px;
}

.label-text {
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

/* Recent Searches Section */
.recent-searches {
    background: #f7f7f7;
    padding: 60px 20px;
}

.recent-searches h2 {
    font-size: 32px;
    margin-bottom: 32px;
    text-align: center;
    color: #222;
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.recent-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.recent-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.recent-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recent-card-address {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.recent-card-meta {
    font-size: 12px;
    color: #999;
}

.recent-card-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    padding: 6px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    width: fit-content;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

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

    .btn-search {
        grid-column: 1;
    }

    .browse-labels h2,
    .recent-searches h2 {
        font-size: 24px;
    }

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

    .grades-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        gap: 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 16px 16px 20px; /* Tight top, balanced bottom on mobile */
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 12px; /* LoveForm-style tight spacing */
    }

    .search-form {
        gap: 8px;
        padding: 12px;
    }

    .form-input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .form-group label {
        font-size: 11px;
    }

    .label-scroll-inner {
        gap: 8px;
    }

    .label-btn {
        min-width: 100px;
        padding: 12px;
        font-size: 12px;
    }

    .label-icon {
        font-size: 24px;
    }

    .recent-grid {
        gap: 16px;
    }
}
