@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSansWeb(FaNum).ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

/* Header */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    width: 32px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85%;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    direction: rtl;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-menu-logo img {
    width: 32px;
    height: 32px;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.mobile-menu-close:hover {
    color: var(--primary-color);
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-links li {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu-link {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
    border-right: 3px solid transparent;
}

.mobile-menu-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-right-color: var(--primary-color);
    padding-right: 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* City Selection Form */
.city-selection-form {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #e5e7eb;
}

.train-search-form {
    width: 100%;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    position: relative;
}

.form-groups-equal {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1 1 auto;
}

.form-row-equal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.form-row-equal .form-group {
    flex: 1 1 calc(50% - 0.375rem);
    min-width: 250px;
}

.form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-width: 250px;
}

.form-group:first-of-type,
.form-group:nth-of-type(3) {
    flex: 1.3 1 auto;
}

.form-row-equal .form-group:first-of-type,
.form-row-equal .form-group:nth-of-type(2) {
    flex: 1 1 calc(50% - 0.375rem);
}

.form-group label {
    min-width: 120px;
    max-width: 120px;
    width: 120px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label-with-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.label-icon {
    flex-shrink: 0;
    color: var(--text-secondary);
    width: 18px;
    height: 18px;
}

.form-label-with-icon span {
    flex: 1;
}

.form-group .form-control,
.form-group .custom-select-wrapper {
    flex: 1;
    min-width: 0;
}

.form-group-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
}

.form-group .form-control {
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: border-color 0.2s;
    background: white;
    color: var(--text-primary);
    flex: 1;
    cursor: pointer;
}

.form-group .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.form-group select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Custom Select Dropdown with Search */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s, box-shadow 0.3s;
    min-height: 48px;
}

.custom-select-trigger:hover {
    border-color: var(--primary-color);
}

.custom-select.active .custom-select-trigger {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.custom-select-value {
    flex: 1;
    text-align: right;
    color: var(--text-primary);
}

.custom-select-value.placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.custom-select-arrow {
    width: 12px;
    height: 8px;
    margin-left: 0.75rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.custom-select.active .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 350px;
    overflow: hidden;
    flex-direction: column;
}

.custom-select.active .custom-select-options {
    display: flex;
}

.custom-select-search {
    position: relative;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.custom-select-search-input {
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.custom-select-search-input:focus {
    border-color: var(--primary-color);
}

.custom-select-search .search-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.custom-select-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    max-height: 280px;
    flex: 1;
}

.custom-select-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--text-primary);
    border-bottom: 1px solid #f3f4f6;
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background-color: #f9fafb;
}

.custom-select-option.selected {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.custom-select-option.hidden {
    display: none;
}

/* Mobile backdrop */
.custom-select-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
}

@media (max-width: 768px) {
    .custom-select-wrapper.active .custom-select-backdrop {
        display: block;
        opacity: 1;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .custom-select-options {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 100vh;
        border-radius: 0;
        border: none;
        z-index: 9999;
        background: white;
    }
    
    .custom-select-list {
        max-height: calc(100vh - 80px);
    }
    
    .custom-select-search {
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        border-bottom: 2px solid var(--border-color);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .custom-select-close-mobile {
        display: none;
        background: transparent;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        color: var(--text-secondary);
        flex-shrink: 0;
    }
    
    .custom-select-close-mobile:hover {
        color: var(--text-primary);
    }
    
    @media (max-width: 768px) {
        .custom-select-close-mobile {
            display: block;
        }
    }
}

.btn-search {
    padding: 0.625rem 1.5rem;
    white-space: nowrap;
    height: fit-content;
    font-size: 0.9375rem;
    border-radius: 6px;
}

/* Passenger Selector */
.passenger-selector-wrapper {
    position: relative;
    flex: 1;
}

.passenger-selector-trigger {
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 42px;
}

.passenger-selector-trigger:hover {
    border-color: var(--primary-color);
}

.passenger-selector-wrapper.active .passenger-selector-trigger {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.passenger-selector-value {
    flex: 1;
    text-align: right;
}

.passenger-selector-arrow {
    width: 12px;
    height: 8px;
    margin-left: 0.75rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.passenger-selector-wrapper.active .passenger-selector-arrow {
    transform: rotate(180deg);
}

.passenger-selector-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
}

.passenger-selector-wrapper.active .passenger-selector-options {
    display: flex;
}

.passenger-type {
    display: flex;
    flex-direction: column;
}

.passenger-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.passenger-type-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.passenger-type-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.passenger-type-subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.passenger-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.passenger-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    user-select: none;
    -webkit-user-select: none;
    line-height: 1;
}

.passenger-btn:hover:not(:disabled) {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.passenger-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.passenger-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f3f4f6;
}

.passenger-count {
    min-width: 40px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    background: #f0f7ff;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    transition: all 0.2s;
}

.passenger-type:last-child .passenger-count {
    background: #f9fafb;
    border-color: #d1d5db;
    color: var(--text-secondary);
}

.passenger-selector-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Hide confirm button on desktop */
.passenger-confirm-btn {
    display: none;
}

@media (max-width: 768px) {
    .passenger-selector-wrapper.active .passenger-selector-backdrop {
        display: block;
        opacity: 1;
    }
    
    .passenger-selector-options {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        right: auto;
        bottom: auto;
        width: calc(100% - 2rem);
        max-width: 400px;
        border-radius: 12px;
        padding: 1.25rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
    
    .passenger-type-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .passenger-counter {
        justify-content: center;
    }
    
    .passenger-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .passenger-count {
        min-width: 50px;
        padding: 0.625rem 1rem;
        font-size: 1.125rem;
    }
    
    .passenger-confirm-btn {
        display: block;
        width: 100%;
        padding: 0.875rem 1.5rem;
        margin-top: 1rem;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        font-family: 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        cursor: pointer;
        transition: all 0.2s;
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
    }
    
    .passenger-confirm-btn:hover {
        background: #2563eb;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        transform: translateY(-1px);
    }
    
    .passenger-confirm-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
    }
}

/* City Input Container - Hidden */
.city-input-container {
    display: none;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        position: relative;
        background: transparent;
        border-radius: 0;
        overflow: visible;
        border: none;
        box-shadow: none;
    }
    
    .form-groups-equal {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .form-row-equal {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .form-row-equal .form-group {
        width: 100%;
    }
    
    .form-group {
        position: relative;
        background: #ffffff;
        border-radius: 6px;
        border: 1px solid #e5e7eb;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        overflow: visible;
        transition: all 0.2s;
        padding: 0.75rem;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .form-group:hover {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        border-color: #d1d5db;
    }
    
    .form-group label {
        margin-bottom: 0;
        font-size: 0.875rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 100px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .form-group .form-control,
    .form-group .custom-select-wrapper {
        flex: 1;
    }
    
    .label-icon {
        width: 16px;
        height: 16px;
    }
    
    .form-group:first-of-type {
        margin-bottom: 0;
    }
    
    .form-group:first-of-type::after {
        display: none;
    }
    
    .form-group:nth-of-type(3) {
        margin-top: 0;
    }
    
    /* Date and Passenger fields in mobile */
    .form-group:nth-of-type(4),
    .form-group:nth-of-type(5) {
        margin-top: 0;
    }
    
    .form-group:nth-of-type(4)::after,
    .form-group:nth-of-type(5)::after {
        display: none;
    }
    
    .form-group:nth-of-type(4) .form-control,
    .form-group:nth-of-type(5) .form-control {
        background: white;
        border: 1px solid #d1d5db;
        padding: 0.5rem 0.75rem;
        min-height: auto;
        font-size: 0.875rem;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        padding-right: 2rem;
        transition: border-color 0.2s;
    }
    
    .form-group:nth-of-type(4) .form-control:focus,
    .form-group:nth-of-type(5) .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
        outline: none;
    }
    
    .form-group:nth-of-type(4) .form-control:hover,
    .form-group:nth-of-type(5) .form-control:hover {
        border-color: #9ca3af;
    }
    
    /* Passenger selector mobile styles */
    .form-group:nth-of-type(5) .passenger-selector-trigger {
        background: white;
        border: 1px solid #d1d5db;
        padding: 0.5rem 0.75rem;
        min-height: auto;
        font-size: 0.875rem;
    }
    
    .form-group:nth-of-type(5) .passenger-selector-trigger:hover {
        border-color: #9ca3af;
    }
    
    .form-group:nth-of-type(5) .passenger-selector-wrapper.active .passenger-selector-trigger {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    }
    
    .form-group:nth-of-type(5) .passenger-selector-value {
        font-size: 0.875rem;
    }
    
    .form-group:nth-of-type(5) .passenger-selector-arrow {
        display: none;
    }
    
    .custom-select-wrapper {
        background: transparent;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        background: white;
    }
    
    .custom-select-trigger {
        background: transparent;
        border: none;
        padding: 0.5rem 0.75rem;
        min-height: auto;
        cursor: pointer;
        transition: border-color 0.2s;
        border-radius: 6px;
    }
    
    .custom-select-trigger:hover {
        border: none;
        background: #f9fafb;
    }
    
    .custom-select.active .custom-select-trigger {
        border: none;
        box-shadow: none;
        background: #f9fafb;
    }
    
    .custom-select.active .custom-select-wrapper {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    }
    
    .custom-select-value {
        text-align: right;
        font-size: 0.875rem;
        color: var(--text-primary);
        line-height: 1.4;
    }
    
    .custom-select-value.placeholder {
        color: #6b7280;
    }
    
    .custom-select-arrow {
        display: none;
    }
    
    /* Add subtle background difference for better separation */
    .form-group:nth-of-type(4) {
        background: #fafbfc;
    }
    
    .form-group:nth-of-type(5) {
        background: #fafbfc;
    }
    
    .form-group-btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    .btn-search {
        width: 100%;
    }
    
    .city-selection-form {
        padding: 1rem;
        margin-top: 1.5rem;
        border-radius: 6px;
    }
    
    .btn-search {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    /* Better spacing for form groups */
    .form-group .custom-select-wrapper {
        margin-top: 0;
    }
    
    /* Make sure the entire form group is clickable */
    .form-group .custom-select {
        width: 100%;
    }
    
    /* Improve visual hierarchy */
    .city-input-container + .custom-select-trigger {
        padding-top: 0.5rem;
    }
    
    .hero h1 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }
    
    .hero p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
}

/* Main Content */
.main-content {
    padding: 3rem 0;
}

.form-group-btn-search {
    width: 100%;
    margin-top: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .main-content {
        padding: 1.5rem 0;
    }
    
    .btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding: 1.25rem 0;
    }
    
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Section Styles (for index.php) */
.section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* How It Works */
.how-it-works {
    background: var(--bg-light);
    padding: 3rem 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    border-right: 4px solid var(--primary-color);
}

.step-number {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.step h3 {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    border-radius: 20px;
    margin: 3rem 0;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Footer */
footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.copyright {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design for Sections */
@media (max-width: 768px) {
    .section {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
    
    /* Features Section Mobile */
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .feature-card {
        padding: 1rem 0.75rem;
        border-radius: 8px;
    }
    
    .feature-icon {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.375rem;
    }
    
    .feature-card p {
        font-size: 0.75rem;
        line-height: 1.5;
    }
    
    /* How It Works Mobile */
    .how-it-works {
        padding: 2rem 0;
        margin: 1.5rem 0;
    }
    
    .how-it-works .container {
        padding: 0 1rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 1rem;
    }
    
    .step {
        padding: 1.25rem;
        border-radius: 8px;
        border-right-width: 3px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        top: -12px;
        right: 15px;
    }
    
    .step h3 {
        font-size: 1.1rem;
        margin-top: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .step p {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    /* CTA Section Mobile */
    .cta-section {
        padding: 2rem 1rem;
        margin: 1.5rem 0;
        border-radius: 12px;
    }
    
    .cta-section h2 {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
    }
    
    .cta-section p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .section {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
        margin-bottom: 0.875rem;
    }
    
    /* Features Mobile - Extra Small */
    .features {
        gap: 0.625rem;
    }
    
    .feature-card {
        padding: 0.875rem 0.625rem;
    }
    
    .feature-icon {
        font-size: 1.5rem;
        margin-bottom: 0.375rem;
    }
    
    .feature-card h3 {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .feature-card p {
        font-size: 0.6875rem;
        line-height: 1.4;
    }
    
    /* How It Works Mobile - Extra Small */
    .how-it-works {
        padding: 1.5rem 0;
        margin: 1rem 0;
    }
    
    .steps {
        gap: 1rem;
    }
    
    .step {
        padding: 1rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        top: -10px;
        right: 12px;
    }
    
    .step h3 {
        font-size: 1rem;
        margin-top: 0.5rem;
    }
    
    .step p {
        font-size: 0.8125rem;
    }
    
    /* CTA Mobile - Extra Small */
    .cta-section {
        padding: 1.5rem 0.875rem;
        margin: 1rem 0;
        border-radius: 10px;
    }
    
    .cta-section h2 {
        font-size: 1.25rem;
        margin-bottom: 0.625rem;
    }
    
    .cta-section p {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }
}

