/**
 * Surprise Travel Booking - Multi-Step Form Styles
 */

/* CSS Variables */
.stb-multistep-form {
    --primary-color: #ff6b6b;
    --secondary-color: #f8f9fa;
    --border-color: #e9ecef;
    --text-color: #333;
    --text-muted: #666;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

/* Main Container */
.stb-multistep-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.stb-multistep-title {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Progress Bar - Timeline Style */
.stb-progress-bar {
    margin-bottom: 40px;
    padding: 0 20px;
}

.stb-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.stb-progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-color);
    z-index: 1;
}

.stb-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.stb-progress-step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    z-index: 1;
    transition: width 0.3s ease;
}

.stb-progress-step.completed::after {
    width: 100%;
}

.stb-progress-step.active::after {
    width: 50%;
}

.stb-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stb-progress-step.active .stb-step-number {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.stb-progress-step.completed .stb-step-number {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.stb-step-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stb-progress-step.active .stb-step-label,
.stb-progress-step.completed .stb-step-label {
    color: var(--primary-color);
}

/* Main Form Layout */
.stb-multistep-form {
    display: flex;
    gap: 56px;
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Main content (left) */
.stb-form-content {
    flex: 1 1 0;
    max-width: 100%;
    min-width: 0;
}

/* Sidebar (right) */
.stb-booking-summary {
    flex: 0 0 280px;
    max-width: 320px;
}

.stb-booking-summary {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
    max-width: 340px;
    min-width: 260px;
    box-sizing: border-box;
}

.stb-booking-summary h3 {
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.stb-summary-section {
    margin-bottom: 25px;
}

.stb-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.stb-summary-item:last-child {
    border-bottom: none;
}

.stb-summary-label {
    font-weight: 600;
    color: var(--text-color);
    flex-shrink: 0;
}

.stb-summary-value {
    color: var(--text-muted);
    text-align: right;
    line-height: 1.4;
}

.stb-price-summary {
    border-top: 2px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

.stb-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.stb-total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Form Content */
.stb-form-content {
    min-height: 600px;
    position: relative;
}

.stb-form-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.stb-form-step.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stb-form-step h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-align: center;
}

.stb-form-step>p {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.stb-sub-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Calendar Styles */
.stb-calendar-container {
    max-width: 800px;
    margin: 0 auto 40px auto;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.stb-calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
}

.stb-calendar-prev,
.stb-calendar-next {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stb-calendar-prev:hover,
.stb-calendar-next:hover {
    background: #ff5252;
    transform: scale(1.1);
}

.stb-calendar-month {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.stb-calendar-grid {
    padding: 20px;
}

.stb-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.stb-calendar-weekdays div {
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
    padding: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.stb-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.stb-calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    width: 36px;
    height: 36px;
}

.stb-calendar-day:hover {
    border-color: var(--primary-color);
    background: #fff5f5;
}

.stb-calendar-day.available {
    border-color: #28a745;
    background: #f8fff8;
}

.stb-calendar-day.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.stb-calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.stb-calendar-day.other-month {
    opacity: 0.3;
    color: var(--text-muted);
}

.stb-day-number {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
}

.stb-day-price {
    font-size: 0.7rem;
    font-weight: 500;
    color: #28a745;
    margin-top: 1px;
    line-height: 1;
}

.stb-calendar-day.selected .stb-day-price {
    color: white;
}

/* Destinations Styles */
.stb-destinations-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.stb-filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.stb-filter-btn.active,
.stb-filter-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.stb-destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stb-destination-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid transparent;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stb-destination-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.2);
}

.stb-destination-card.discarded {
    opacity: 0.6;
    border-color: var(--danger-color);
    background: #fff5f5;
}

.stb-destination-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.stb-destination-placeholder {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stb-destination-card h4 {
    margin: 10px 0 0 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    padding: 0 10px;
}

.stb-discard-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.stb-destination-card.discarded .stb-discard-overlay {
    display: flex;
}

.stb-discards-counter {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 30px;
}

/* Personalization Styles */
.stb-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.stb-section:last-child {
    border-bottom: none;
}

.stb-section h3 {
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.stb-section>p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.stb-accommodation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stb-accommodation-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stb-accommodation-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stb-accommodation-card.selected {
    border-color: var(--primary-color);
    background: #fff5f5;
}

.stb-accommodation-image {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stb-accommodation-card h4 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.stb-accommodation-card .stb-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: normal;
}

.stb-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 15px 0;
}

.stb-price-note {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--text-muted);
}

.stb-select-btn {
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.stb-select-btn:hover,
.stb-select-btn.selected {
    background: var(--primary-color);
    color: white;
}

/* Extras Grid */
.stb-extras-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stb-extra-section h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.stb-extra-section p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.stb-luggage-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stb-luggage-option {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.stb-luggage-option h5 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.stb-luggage-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: normal;
}

.stb-luggage-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.stb-qty-btn {
    width: 32px;
    height: 32px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.stb-qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.stb-qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stb-luggage-controls input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.stb-luggage-price {
    font-weight: 600;
    color: var(--primary-color);
}

.stb-luggage-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: normal;
}

.stb-seats-option {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stb-seats-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.stb-seats-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: normal;
}

/* Flight Times */
.stb-flight-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stb-flight-time-option h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stb-flight-cost {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.stb-time-slider {
    position: relative;
}

.stb-slider {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 15px;
}

.stb-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.stb-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.stb-time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Details Form */
.stb-traveler-form {
    max-width: 600px;
    margin: 0 auto;
}

.stb-form-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.stb-form-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.stb-gender-selection {
    display: flex;
    gap: 20px;
    margin: 25px 0;
}

.stb-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
}

.stb-radio-label input {
    margin: 0;
    accent-color: var(--primary-color);
}

.stb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.stb-form-field {
    display: flex;
    flex-direction: column;
}

.stb-form-field label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.stb-form-field input,
.stb-form-field select,
.stb-form-field textarea {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.stb-form-field input:focus,
.stb-form-field select:focus,
.stb-form-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.stb-phone-input {
    display: flex;
    gap: 10px;
}

.stb-phone-input select {
    flex: 0 0 100px;
}

.stb-phone-input input {
    flex: 1;
}

.stb-observations,
.stb-discount-code {
    margin: 25px 0;
}

.stb-observations h4,
.stb-discount-code h4 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-weight: 600;
}

.stb-observations textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
}

.stb-terms-acceptance {
    margin: 25px 0;
}

.stb-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.5;
}

.stb-checkbox-label input {
    margin: 4px 0 0 0;
    accent-color: var(--primary-color);
}

.stb-checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.stb-checkbox-label a:hover {
    text-decoration: underline;
}

.stb-form-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 20px;
}

/* Action Buttons */
.stb-step-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.stb-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.stb-btn-primary {
    background: var(--primary-color);
    color: white;
}

.stb-btn-primary:hover:not(:disabled) {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.stb-btn-secondary {
    background: var(--border-color);
    color: var(--text-color);
}

.stb-btn-secondary:hover {
    background: #ddd;
}

.stb-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stb-multistep-form {
        flex-direction: column;
    }

    .stb-booking-summary {
        position: static;
        margin: 0 auto;
        flex: 0 1 400px;
    }

    .stb-multistep-form {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .stb-multistep-wrapper {
        padding: 15px;
    }

    .stb-multistep-title {
        font-size: 2rem;
    }

    .stb-multistep-form {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }

    .stb-booking-summary {
        order: 2;
        position: static;
    }

    .stb-progress-steps {
        flex-wrap: wrap;
        gap: 15px;
    }

    .stb-progress-step::after {
        display: none;
    }

    .stb-calendar-days {
        gap: 3px;
    }

    .stb-destinations-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .stb-accommodation-options {
        grid-template-columns: 1fr;
    }

    .stb-extras-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .stb-flight-times {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .stb-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stb-step-actions {
        flex-direction: column;
        align-items: center;
    }

    .stb-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .stb-multistep-title {
        font-size: 1.5rem;
    }

    .stb-multistep-form {
        padding: 20px;
    }

    .stb-form-step h2 {
        font-size: 1.5rem;
    }

    .stb-destinations-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .stb-calendar-days {
        gap: 2px;
    }

    .stb-day-price {
        font-size: 0.7rem;
    }
}

/* Preview Mode (Elementor Editor) */
.stb-preview-mode {
    pointer-events: none;
}

.stb-preview-info {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.stb-preview-info h4 {
    margin: 0 0 15px 0;
    color: var(--text-color);
}

.stb-preview-info ul {
    margin: 0;
    padding-left: 20px;
}

.stb-preview-info li {
    margin-bottom: 8px;
    color: var(--text-muted);
}