/* Family Trip Planner Pro Frontend Styles */

:root {
    --ftp-primary: #667eea;
    --ftp-secondary: #764ba2;
    --ftp-success: #48bb78;
    --ftp-warning: #f6ad55;
    --ftp-danger: #fc8181;
    --ftp-light: #f7fafc;
    --ftp-dark: #2d3748;
    --ftp-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Main Container */
.ftp-planner-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Offline Indicator */
.ftp-offline-indicator {
    background: var(--ftp-warning);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(246, 173, 85, 0.3);
}

/* Upgrade Banner */
#ftp-upgrade-banner {
    background: var(--ftp-gradient);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.ftp-upgrade-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.ftp-upgrade-text strong {
    display: block;
    font-size: 1.3em;
    margin-bottom: 5px;
}

.ftp-upgrade-btn {
    background: white;
    color: var(--ftp-primary);
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ftp-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Progress Bar */
.ftp-progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
}

.ftp-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.ftp-progress-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    top: 35px;
    left: 0;
    z-index: 1;
}

.ftp-step-circle {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #718096;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.ftp-progress-step.active .ftp-step-circle {
    background: var(--ftp-gradient);
    color: white;
    box-shadow: 0 0 0 10px rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.ftp-progress-step.completed .ftp-step-circle {
    background: var(--ftp-success);
    color: white;
}

.ftp-progress-step span {
    display: block;
    font-size: 0.9em;
    color: #718096;
    font-weight: 500;
}

.ftp-progress-step.active span {
    color: var(--ftp-primary);
    font-weight: 700;
}

/* Step Content */
.ftp-step-content {
    display: none;
    animation: fadeIn 0.5s ease;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ftp-step-content.active {
    display: block;
}

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

.ftp-step-content h2 {
    color: var(--ftp-dark);
    margin-bottom: 15px;
    font-size: 2.2em;
    font-weight: 800;
    background: var(--ftp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ftp-step-description {
    color: #718096;
    font-size: 1.1em;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* Form Styling */
.ftp-form-group {
    margin-bottom: 30px;
}

.ftp-form-group label {
    display: block;
    margin-bottom: 12px;
    color: var(--ftp-dark);
    font-weight: 600;
    font-size: 1.05em;
}

.ftp-form-group label i {
    margin-right: 8px;
    color: var(--ftp-primary);
}

.ftp-form-group input[type="text"],
.ftp-form-group input[type="email"],
.ftp-form-group input[type="date"],
.ftp-form-group input[type="number"],
.ftp-form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
}

.ftp-form-group input:focus,
.ftp-form-group select:focus {
    outline: none;
    border-color: var(--ftp-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Destination Inputs */
.ftp-destination-input {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ftp-destination-input input {
    flex: 1;
}

.ftp-get-costs {
    padding: 12px 18px;
    background: var(--ftp-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ftp-get-costs:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Date Range */
.ftp-date-range {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ftp-date-range input {
    flex: 1;
}

.ftp-date-range span {
    color: #718096;
    font-weight: 500;
    padding: 0 10px;
}

.ftp-remove-date {
    padding: 10px 15px;
    background: var(--ftp-danger);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ftp-remove-date:hover {
    background: #e53e3e;
}

/* Family Members */
.ftp-member-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr;
    gap: 12px;
    margin-bottom: 12px;
    padding: 15px;
    background: var(--ftp-light);
    border-radius: 10px;
}

/* Info Box */
.ftp-info-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid var(--ftp-primary);
    padding: 18px;
    border-radius: 8px;
    margin-top: 20px;
    color: #2563eb;
}

/* Radio Group */
.ftp-radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ftp-radio-group label {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ftp-radio-group label:hover {
    border-color: var(--ftp-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.ftp-radio-group input[type="radio"] {
    margin-right: 10px;
    width: auto;
}

.ftp-radio-group input[type="radio"]:checked + span {
    font-weight: 700;
    color: var(--ftp-primary);
}

/* Buttons */
.ftp-btn-primary,
.ftp-btn-secondary,
#add-destination,
#add-date-range,
#add-family-member,
#continue-to-budget,
#continue-to-voting,
#finalize-trip {
    padding: 14px 32px;
    font-size: 1.05em;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ftp-btn-primary,
#continue-to-budget,
#continue-to-voting,
#finalize-trip {
    background: var(--ftp-gradient);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

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

.ftp-btn-secondary,
#add-destination,
#add-date-range,
#add-family-member {
    background: #718096;
    color: white;
}

.ftp-btn-secondary:hover {
    background: #4a5568;
    transform: translateY(-2px);
}

/* Form Actions */
.ftp-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 45px;
    padding-top: 35px;
    border-top: 2px solid #e2e8f0;
}

/* Budget Display */
.ftp-budget-display {
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    margin-bottom: 30px;
}

.ftp-budget-summary {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.ftp-budget-total {
    text-align: center;
    margin-bottom: 20px;
}

.ftp-budget-label {
    display: block;
    color: #718096;
    font-size: 0.95em;
    margin-bottom: 8px;
}

.ftp-budget-amount {
    font-size: 3em;
    font-weight: 800;
    background: var(--ftp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
    .ftp-planner-container {
        margin: 20px 10px;
        padding: 0;
    }
    
    .ftp-step-content {
        padding: 20px;
    }
    
    .ftp-member-row {
        grid-template-columns: 1fr;
    }
    
    .ftp-form-actions {
        flex-direction: column;
    }
    
    .ftp-progress-bar {
        padding: 15px;
    }
    
    .ftp-progress-step span {
        font-size: 0.75em;
    }
}

/* Additional overrides to ensure styles apply */
.ftp-planner-container * {
    box-sizing: border-box;
}

.ftp-planner-container h2 {
    margin-top: 0 !important;
}

.ftp-step-content {
    min-height: 400px;
}

.entry-content .ftp-planner-container {
    max-width: 1200px !important;
}

/* Ensure buttons look good */
.ftp-btn-primary,
.ftp-btn-secondary,
.ftp-planner-container button {
    text-decoration: none !important;
    display: inline-block !important;
}

/* Fix any theme conflicts */
.site-content .ftp-planner-container input[type="text"],
.site-content .ftp-planner-container input[type="email"],
.site-content .ftp-planner-container input[type="date"],
.site-content .ftp-planner-container select {
    max-width: 100% !important;
    width: 100% !important;
}
