/**
 * FunTravelo Planner Form Styles
 */

/* Base Form Styles */
.funtravelo-form {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.funtravelo-form h3 {
    margin: 0 0 25px 0;
    font-size: 1.5rem;
    color: #333;
    text-align: center;
}

.funtravelo-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.funtravelo-form input[type="text"],
.funtravelo-form input[type="date"],
.funtravelo-form input[type="number"],
.funtravelo-form select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.funtravelo-form input:focus,
.funtravelo-form select:focus {
    border-color: #2E86C1;
    box-shadow: 0 0 0 4px rgba(46, 134, 193, 0.1);
    outline: none;
}

/* Row Layout */
.funtravelo-form .row {
    display: flex;
    gap: 20px;
    margin-bottom: 5px;
}

.funtravelo-form .col {
    flex: 1;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.radio-group label:hover {
    border-color: #2E86C1;
}

.radio-group input:checked+label,
.radio-group label:has(input:checked) {
    background: #2E86C1;
    color: white;
    border-color: #2E86C1;
}

/* Interest Cards */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.interest-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    background: #fff;
}

.interest-card:hover {
    border-color: #2E86C1;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.interest-card.selected,
.interest-card:has(input:checked) {
    border-color: #2E86C1;
    background: linear-gradient(135deg, rgba(46, 134, 193, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
}

.interest-card input[type="checkbox"] {
    display: none;
}

.interest-card .icon-img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.interest-card .card-content {
    display: flex;
    flex-direction: column;
}

.interest-card .card-title {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.interest-card .card-desc {
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
}

/* Buttons */
.btn-generate,
.btn-premium {
    width: 100%;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-generate {
    background: linear-gradient(135deg, #2E86C1 0%, #1a5276 100%);
    color: white;
}

.btn-premium {
    background: linear-gradient(135deg, #FF8C00 0%, #FFA834 100%);
    color: white;
}

.btn-generate:hover,
.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-generate:disabled,
.btn-premium:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Upgrade Banner */
.upgrade-banner {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    text-align: center;
    color: white;
}

.upgrade-banner p {
    margin: 0 0 12px 0;
}

.btn-upgrade {
    display: inline-block;
    padding: 10px 25px;
    background: white;
    color: #667eea;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-upgrade:hover {
    transform: scale(1.05);
}

/* Loading State */
.form-loading {
    text-align: center;
    padding: 20px;
    color: #2E86C1;
    font-weight: 600;
}

.form-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #2E86C1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Error State */
.form-error {
    padding: 15px 20px;
    background: #fee;
    border: 1px solid #f88;
    color: #c00;
    border-radius: 10px;
    margin-top: 15px;
}

.form-error a {
    color: #2E86C1;
    font-weight: 600;
}

/* Premium Version Styling */
.premium-version {
    border: 3px solid transparent;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #FF8C00 0%, #2E86C1 100%) border-box;
}

.premium-version h3 {
    background: linear-gradient(135deg, #FF8C00 0%, #2E86C1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Destination Search */
.destination-search {
    font-size: 1.1rem !important;
    padding: 15px 20px !important;
}

/* Responsive */
@media (max-width: 600px) {
    .funtravelo-form {
        padding: 20px;
    }

    .funtravelo-form .row {
        flex-direction: column;
        gap: 0;
    }

    .radio-group {
        flex-direction: column;
    }

    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}