/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    min-height: 100vh;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-text span {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
    display: block;
    margin-top: -0.2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-info {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.btn-info:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.admin-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.1);
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Welcome Header */
.welcome-header {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-header p {
    font-size: 1.25rem;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Buttons */
.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
    min-width: 140px;
    justify-content: center;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.6);
}

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Registration Container */
.registration-container {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 25%;
    right: 25%;
    height: 3px;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e0 100%);
    z-index: 1;
    border-radius: 1.5px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
    background: white;
    padding: 0 1.5rem;
    position: relative;
}

.step-number {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #e2e8f0;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.progress-step.completed .step-number {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.progress-step .step-label {
    font-size: 0.875rem;
    color: #4a5568;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-step.active .step-label {
    color: #667eea;
}

.progress-step.completed .step-label {
    color: #48bb78;
}

/* Step Content */
.step-content {
    margin-bottom: 3rem;
}

/* Ensure proper spacing for scroll targets */
.step-content {
    scroll-margin-top: 2rem;
    padding-top: 1rem;
}

.selected-city-display {
    scroll-margin-top: 2rem;
    margin-top: 2rem;
    padding: 1.5rem;
    text-align: center;
}

.type-selection {
    scroll-margin-top: 2rem;
}

.step-navigation {
    scroll-margin-top: 2rem;
    margin-top: 2rem;
    padding: 1.5rem 0;
}

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

.step-header h3 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #1a202c;
    font-weight: 700;
}

.step-header p {
    color: #4a5568;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* City Cloud Container */
.city-cloud-container {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 1rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Search Container */
.search-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.search-input-wrapper {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1rem;
}

.search-input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input-wrapper button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    color: #a0aec0;
    transition: all 0.3s ease;
}

.search-input-wrapper button:hover {
    background: #f7fafc;
    color: #667eea;
}

/* City Cloud */
.city-cloud {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
}

.city-button {
    background: linear-gradient(230deg, #f9f9f9 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    position: relative;
    overflow: hidden;
}

.city-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.city-button:hover::before {
    left: 100%;
}

.city-button:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.city-button.selected {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-color: #48bb78;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3);
}

.city-button.selected:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(72, 187, 120, 0.4);
}

.city-button i {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.city-button.selected i {
    opacity: 1;
}

/* Selected City Display */
.selected-city-display {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.city-selection-card {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
    animation: slideIn 0.5s ease-out;
}

.city-selection-card i {
    font-size: 1.5rem;
}

.city-info .city-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.city-info .city-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.continue-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Type Selection */
.type-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.type-card {
    background: white;
    border: 3px solid #e2e8f0;
    padding: 2.5rem;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.type-card:hover::before {
    opacity: 0.05;
}

.type-card.selected::before {
    opacity: 0.1;
}

.type-card > * {
    position: relative;
    z-index: 2;
}

.type-card:hover {
    border-color: #667eea;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.type-card.selected {
    border-color: #667eea;
    background: #f7fafc;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.host-card.selected {
    border-color: #48bb78;
    box-shadow: 0 15px 35px rgba(72, 187, 120, 0.3);
}

.supporter-card.selected {
    border-color: #ed8936;
    box-shadow: 0 15px 35px rgba(237, 137, 54, 0.3);
}

.type-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.type-icon i {
    font-size: 3.5rem;
    color: #667eea;
    transition: all 0.3s ease;
}

.host-card .type-icon i {
    color: #48bb78;
}

.supporter-card .type-icon i {
    color: #ed8936;
}

.type-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a202c;
    font-weight: 700;
    text-align: center;
}

.type-content p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.type-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #2d3748;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.type-benefits i {
    color: #48bb78;
    font-size: 0.875rem;
}

/* Forms */
.modern-form {
    margin-top: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1a202c;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
    color: #1a202c;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

/* Success Message */
.success-message {
    background: white;
    border-radius: 1.5rem;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(72, 187, 120, 0.2);
}

.success-icon {
    margin-bottom: 2rem;
}

.success-icon i {
    font-size: 5rem;
    color: #48bb78;
    animation: bounceIn 0.6s ease-out;
}

.success-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a202c;
    font-weight: 700;
}

.success-content p {
    color: #4a5568;
    margin-bottom: 2rem;
    font-size: 1.125rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Info Modal */
.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 1.5rem;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease-out;
}

.modal-header {
    padding: 2rem 2rem 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.modal-header h3 {
    font-size: 1.75rem;
    color: #1a202c;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #4a5568;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f7fafc;
    color: #1a202c;
}

.modal-body {
    padding: 2rem;
}

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

.modal-body .info-card {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.modal-body .info-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.modal-body .info-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1a202c;
    font-weight: 600;
}

.modal-body .info-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

.loading-spinner p {
    color: #4a5568;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #1a202c;
    color: #e2e8f0;
    padding: 2rem;
    margin-top: auto;
}

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

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-content {
        padding: 2rem 1rem;
    }
    
    .welcome-header h2 {
        font-size: 2.5rem;
    }
    
    .welcome-header p {
        font-size: 1.125rem;
    }
    
    .header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .type-selection {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .registration-container {
        padding: 2rem 1.5rem;
    }
    
    /* Improved Mobile Progress Bar */
    .progress-bar {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
        margin-bottom: 3rem;
        position: relative;
        overflow-x: auto;
        padding: 0 0.5rem;
    }
    
    .progress-bar::before {
        display: none;
    }
    
    .progress-step {
        flex-direction: column;
        align-items: center;
        padding: 0;
        min-width: fit-content;
        flex-shrink: 0;
    }
    
    .step-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .progress-step .step-label {
        font-size: 0.75rem;
        text-align: center;
        white-space: nowrap;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-navigation .btn {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    /* City Cloud Mobile Optimizations */
    .city-cloud-container {
        padding: 1rem;
    }
    
    .city-cloud {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .city-button {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .city-button i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .welcome-header h2 {
        font-size: 2rem;
    }
    
    .step-header h3 {
        font-size: 1.5rem;
    }
    
    .registration-container {
        padding: 1.5rem 1rem;
    }
    
    .type-card {
        padding: 2rem 1.5rem;
    }
    
    .success-message {
        padding: 3rem 2rem;
    }
    
    .success-icon i {
        font-size: 4rem;
    }
    
    .success-content h3 {
        font-size: 2rem;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-body .info-grid {
        grid-template-columns: 1fr;
    }
    
    /* Further Mobile Optimizations for Small Screens */
    .progress-bar {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }
    
    .progress-step .step-label {
        font-size: 0.7rem;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .city-cloud {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .city-button {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .search-input-wrapper input {
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        font-size: 0.875rem;
    }
    
    .search-input-wrapper i {
        left: 0.75rem;
        font-size: 0.875rem;
    }
}

/* High contrast mode for accessibility */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border: 2px solid #fff;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .type-card {
        border-width: 3px;
    }
    
    .form-group input,
    .form-group textarea {
        border-width: 3px;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
} 

/* Form Field Help Text */
.field-help {
    display: block;
    font-size: 0.8rem;
    color: #718096;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Instagram Validation States */
.form-group input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.instagram-error {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Slide Animation Classes */
.slide-up {
    animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.slide-down {
    animation: slideDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.slide-up-fast {
    animation: slideUpFast 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.slide-down-fast {
    animation: slideDownFast 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px);
        opacity: 0;
        display: none;
    }
}

@keyframes slideDown {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUpFast {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-30px);
        opacity: 0;
    }
}

@keyframes slideDownFast {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Step content transitions */
.step-content {
    scroll-margin-top: 2rem;
    padding-top: 1rem;
    transition: all 0.3s ease;
}

.step-content.entering {
    animation: slideDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.step-content.leaving {
    animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Selected city display animations */
.selected-city-display.show {
    animation: slideDownFast 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.selected-city-display.hide {
    animation: slideUpFast 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Type card animations */
.type-card.selected {
    animation: slideDownFast 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Navigation buttons animations */
.step-navigation.show {
    animation: slideDownFast 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
} 

/* Enhanced Animation Performance */
.step-content, 
.selected-city-display, 
.type-card, 
.step-navigation {
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Smooth transitions for mobile */
@media (max-width: 768px) {
    .slide-up,
    .slide-down {
        animation-duration: 0.6s;
    }
    
    .slide-up-fast,
    .slide-down-fast {
        animation-duration: 0.4s;
    }
    
    .step-content.entering,
    .step-content.leaving {
        animation-duration: 0.6s;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .slide-up,
    .slide-down,
    .slide-up-fast,
    .slide-down-fast,
    .step-content.entering,
    .step-content.leaving {
        animation: none;
        transition: opacity 0.3s ease;
    }
} 

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .logo-text span {
        font-size: 0.8rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .youtube-link,
    .btn-info {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .progress-bar {
        padding: 0 1rem;
        overflow-x: auto;
        justify-content: space-evenly;
        margin-bottom: 2rem;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .progress-bar::-webkit-scrollbar {
        display: none;
    }
    
    .progress-step {
        min-width: 80px;
        flex-shrink: 0;
        padding: 0 0.25rem;
    }
    
    .step-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
        min-width: 2rem;
        flex-shrink: 0;
    }
    
    .step-label {
        font-size: 0.65rem;
        white-space: nowrap;
        text-align: center;
        line-height: 1.1;
    }
    
    .welcome-header {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .welcome-header h2 {
        font-size: 1.8rem;
    }
    
    .step-content {
        padding: 1.5rem 1rem;
    }
    
    .type-selection {
        flex-direction: column;
        gap: 1rem;
    }
    
    .type-card {
        padding: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .step-navigation {
        padding: 1rem;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.75rem 1rem;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text span {
        font-size: 0.75rem;
    }
    
    .welcome-header {
        padding: 1.5rem 1rem;
    }
    
    .welcome-header h2 {
        font-size: 1.5rem;
    }
    
    .step-content {
        padding: 1rem 0.75rem;
    }
    
    .type-card {
        padding: 1rem;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .youtube-link,
    .btn-info {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Extra small progress bar for tiny screens */
    .progress-bar {
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.7rem;
        min-width: 1.75rem;
    }
    
    .progress-step {
        min-width: 70px;
        padding: 0 0.125rem;
    }
    
    .progress-step .step-label {
        font-size: 0.6rem;
        line-height: 1;
    }
} 

/* City Selection Modal */
.city-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.city-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease-out;
    color: white;
}

.city-modal-header {
    margin-bottom: 1.5rem;
}

.city-modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
    opacity: 0.9;
}

.city-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.city-modal-body {
    margin-bottom: 2rem;
}

.city-modal-body p {
    margin: 0.75rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

.city-modal-body strong {
    font-weight: 700;
    color: #fff;
}

#countdownTimer {
    font-weight: 700;
    color: #ffd700;
    font-size: 1.1rem;
}

.city-modal-actions {
    display: flex;
    justify-content: center;
}

.btn-continue {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.btn-continue:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-continue:active {
    transform: translateY(0);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Mobile City Modal */
@media (max-width: 768px) {
    .city-modal-content {
        padding: 1.5rem;
        max-width: 350px;
        border-radius: 1rem;
    }
    
    .city-modal-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .city-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .city-modal-body p {
        font-size: 0.9rem;
    }
    
    .btn-continue {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .city-modal-content {
        padding: 1.25rem;
        max-width: 320px;
    }
    
    .city-modal-icon {
        font-size: 2rem;
    }
    
    .city-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .city-modal-body p {
        font-size: 0.85rem;
    }
} 