/* ===== FORECAST FORM UPGRADED STYLES โจ ===== */
.forecast-form-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}
.forecast-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(25%, 25%); }
}
.forecast-form-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 70px rgba(102, 126, 234, 0.5);
}

/* Header */
.forecast-header {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}
.forecast-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 16px;
    animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); transform: scale(1); }
    50% { box-shadow: 0 0 40px rgba(255, 255, 255, 0.5); transform: scale(1.05); }
}
.forecast-icon {
    font-size: 40px;
}
.forecast-title {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.forecast-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Switch 020/030 */
.prefix-switch-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.prefix-switch-container {
    width: 110px;
    height: 56px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 28px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
    margin: 0 auto;
}
.prefix-switch-container:hover {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
.prefix-switch-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(100% - 8px);
    height: 44px;
    background: white;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: #764ba2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.prefix-text {
    color: #764ba2;
}
.switch-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* Input Field */
.input-wrapper {
    position: relative;
    z-index: 1;
}
.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #764ba2;
    z-index: 2;
}
.forecast-input {
    width: 100%;
    height: 56px;
    padding: 0 16px 0 52px;
    font-size: 20px;
    font-weight: 700;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Ropa Sans', 'DM Sans', 'Roboto', 'Source Sans 3', 'Poppins', 'Noto Sans Lao Looped', 'Phetsarath', sans-serif !important;
}
.forecast-input::placeholder {
    color: #999;
    font-weight: 500;
}
.forecast-input:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
    background: white;
}

/* Submit Button */
.forecast-submit-btn {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    font-size: 20px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.forecast-submit-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 ease;
}
.forecast-submit-btn:hover::before {
    left: 100%;
}
.forecast-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.5);
}
.forecast-submit-btn:active {
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .forecast-form-container {
        padding: 24px 16px;
        border-radius: 20px;
    }
    .forecast-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    .forecast-icon {
        font-size: 30px;
    }
    .forecast-title {
        font-size: 26px;
    }
    .forecast-subtitle {
        font-size: 14px;
    }
    .prefix-switch-container {
        width: 76px;
        height: 48px;
    }
    .prefix-switch-slider {
        height: 40px;
        font-size: 16px;
    }
    .forecast-input {
        font-size: 16px;
        height: 48px;
        padding: 0 10px 0 38px;
    }
    .input-icon svg {
        width: 20px;
        height: 20px;
    }
    .input-icon {
        left: 10px;
    }
    .forecast-submit-btn {
        font-size: 14px;
        height: 48px;
        padding: 0 12px;
    }
    .forecast-submit-btn svg {
        width: 18px;
        height: 18px;
    }
    .desktop-only-text {
        display: none;
    }
}

/* ===== FORECAST ROW - 3 items on same line ===== */
.forecast-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.forecast-row-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.forecast-row-input {
    flex: 1;
    min-width: 0;
}
.forecast-row-input .input-wrapper {
    height: 100%;
}
.forecast-row-input .forecast-input {
    height: 100%;
    box-sizing: border-box;
}

.forecast-row-btn {
    flex-shrink: 0;
    width: max-content;
    min-width: 100px;
}

/* Desktop: hide mobile text */
.forecast-btn-text-mobile {
    display: none;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .forecast-row {
        gap: 8px;
        min-height: 50px;
    }
    .forecast-row-switch {
        min-height: 50px;
        justify-content: center;
    }
    .prefix-switch-container {
        width: 80px;
        height: 50px;
    }
    .prefix-switch-slider {
        width: 72px;
        height: 42px;
        font-size: 18px;
    }
    .forecast-input {
        font-size: 14px;
        padding: 12px 12px 12px 40px;
        min-height: 50px;
    }
    .input-icon svg {
        width: 18px;
        height: 18px;
    }
    .input-icon {
        left: 12px;
    }
    .forecast-submit-btn {
        font-size: 0.85rem;
        padding: 0 14px;
        min-height: 50px;
    }
    .forecast-btn-text {
        display: none;
    }
    .forecast-btn-icon {
        display: none;
    }
    .forecast-btn-text-mobile {
        display: block !important;
    }
    .switch-hint {
        display: none;
    }
}
