/* Professional Travel Planner Form Design */
.travel-planner {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.travel-planner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9800, #ff6b00);
}

.travel-planner__header {
    text-align: center;
    margin-bottom: 2rem;
}

.travel-planner__title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.travel-planner__form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Destination Input */
.travel-planner__input--destination {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 2px solid #e8ecf0;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    background: #fafbfc;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
    display: block;
    margin: 0 auto;
}

.travel-planner__input--destination:focus {
    outline: none;
    border-color: #01b4ed;
    background: white;
    box-shadow: 0 0 0 3px rgba(1, 180, 237, 0.1);
    transform: translateY(-2px);
}

.travel-planner__input--destination::placeholder {
    color: #95a5a6;
    font-weight: 400;
}

/* Options Layout */
.travel-planner__options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.travel-planner__option-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.travel-planner__option-label {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.travel-planner__option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.travel-planner__option-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    background: white;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 1 auto;
    min-width: 110px;
    text-align: center;
    white-space: nowrap;
}

.travel-planner__option-btn:hover {
    border-color: #01b4ed;
    background: #f8fcff;
    transform: translateY(-1px);
}

.travel-planner__option-btn--active {
    background: #01b4ed;
    color: white;
    border-color: #01b4ed;
    box-shadow: 0 4px 12px rgba(1, 180, 237, 0.3);
}

.travel-planner__option-btn--active:hover {
    background: #0099cc;
    border-color: #0099cc;
}

.travel-planner__date-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    background: #fafbfc;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.travel-planner__date-input:focus {
    outline: none;
    border-color: #01b4ed;
    background: white;
    box-shadow: 0 0 0 3px rgba(1, 180, 237, 0.1);
}

.travel-planner__submit-btn {
    background: linear-gradient(135deg, #01b4ed 0%, #667eea 100%);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(1, 180, 237, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.travel-planner__submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(1, 180, 237, 0.4);
}

.travel-planner__submit-btn:active {
    transform: translateY(-1px);
}

.travel-planner__submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Smooth transitions and loading states */
body {
    transition: opacity 0.3s ease;
}

body.loading {
    opacity: 0.8;
}

/* Desktop Layout - Use button design for all screen sizes */
@media (min-width: 769px) {
    .travel-planner__form {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .travel-planner__options {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .travel-planner__option-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .travel-planner__option-btn {
        flex: 1;
        min-width: 100px;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .travel-planner__input--destination {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .travel-planner__submit-btn {
        max-width: 400px;
        margin: 2rem auto 0;
    }
}

/* Mobile - PROPER LAYOUT - BALANCED WITH VISIBLE FOOTER */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }
    
    .travel-planner {
        margin: 0.5rem;
        padding: 1.25rem;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        width: calc(100% - 1rem);
        max-width: none;
    }
    
    .travel-planner__title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .travel-planner__form {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .travel-planner__input,
    .travel-planner__select {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        width: 100%;
    }
    
    .travel-planner__submit-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        margin-top: 0.5rem;
        width: 100%;
    }
}

/* iPhone specific optimizations */
@media (max-width: 480px) {
    .travel-planner {
        margin: 0.25rem;
        padding: 1rem;
        width: calc(100% - 0.5rem);
        border-radius: 12px;
    }
    
    .travel-planner__title {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }
    
    .travel-planner__form {
        gap: 1rem;
    }
    
    .travel-planner__input,
    .travel-planner__select {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .travel-planner__submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}
    
    .app {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .app__header {
        padding: 1rem 0;
        flex-shrink: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .app__header .container {
        padding: 0 1rem;
    }
    
    .app__logo-img {
        height: 150px;
        width: auto;
    }
    
    .app__main {
        padding: 0.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .hero {
        padding: 0;
        margin: 0;
        text-align: center;
    }
    
    .hero__content {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero__title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
        color: #01b4ed;
        font-weight: 800;
    }
    
    .hero__description {
        font-size: 1rem;
        margin-bottom: 1rem;
        line-height: 1.4;
        color: #01b4ed;
        font-weight: 500;
    }
    
    .hero__cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        font-weight: 600;
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
        display: block;
    }
    
    .app__footer {
        padding: 1rem;
        font-size: 0.8rem;
        flex-shrink: 0;
        background: rgba(44, 62, 80, 0.95);
        color: white;
        text-align: center;
        margin-top: auto;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .app__footer .container {
        padding: 0 1rem;
    }
}

/* Additional mobile fixes for smaller screens */
@media (max-width: 480px) {
    .app__logo-img {
        height: 120px;
    }
    
    .hero__title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .hero__description {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .hero__cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        max-width: 240px;
    }
    
    .app__main {
        padding: 0.75rem;
    }
    
    .app__footer {
        padding: 0.75rem;
        font-size: 0.75rem;
    }
}
