/**
 * Dreams Voyage - Custom Trip Builder Interactive Styles
 */

.dv-builder-wrapper {
    background: #f8fafc;
    min-height: 80vh;
    padding: 40px 0 80px;
    font-family: inherit;
}

.dv-builder-hero {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 35px;
    padding: 0 15px;
}

.dv-builder-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.dv-builder-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 12px;
}

.dv-builder-subtitle {
    font-size: 15.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Stepper Bar */
.dv-stepper-container {
    max-width: 900px;
    margin: 0 auto 35px;
    padding: 0 15px;
}

.dv-stepper-nav {
    display: flex;
    justify-content: space-between;
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dv-stepper-nav::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.dv-stepper-nav-progress {
    position: absolute;
    top: 20px;
    left: 40px;
    height: 3px;
    background: #0284c7;
    z-index: 2;
    transition: width 0.35s ease;
    width: 0%;
}

[dir="rtl"] .dv-stepper-nav-progress {
    left: auto;
    right: 40px;
}

.dv-step-item {
    position: relative;
    z-index: 3;
    text-align: center;
    flex: 1;
}

.dv-step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.3s ease;
    margin-bottom: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.dv-step-item.active .dv-step-circle {
    border-color: #0284c7;
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
}

.dv-step-item.completed .dv-step-circle {
    border-color: #10b981;
    background: #10b981;
    color: #ffffff;
}

.dv-step-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #64748b;
    transition: color 0.3s;
}

.dv-step-item.active .dv-step-label {
    color: #0f172a;
}

/* Card Container */
.dv-builder-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
    max-width: 900px;
    margin: 0 auto;
    padding: 35px 40px;
    position: relative;
}

.dv-step-pane {
    display: none;
    animation: dvFadeSlideIn 0.35s ease forwards;
}

.dv-step-pane.active {
    display: block;
}

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

.dv-pane-header {
    margin-bottom: 25px;
    text-align: center;
}

.dv-pane-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.dv-pane-desc {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* Grids */
.dv-destinations-grid,
.dv-activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

/* Selectable Cards */
.dv-select-card {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.dv-select-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}

.dv-select-card.selected {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
}

.dv-card-check-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: transparent;
    transition: all 0.2s;
}

[dir="rtl"] .dv-card-check-indicator {
    right: auto;
    left: 12px;
}

.dv-select-card.selected .dv-card-check-indicator {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

.dv-card-img {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 12px;
}

.dv-card-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.dv-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
}

.dv-card-desc {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Travelers & Dates Step */
.dv-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.dv-form-group {
    display: flex;
    flex-direction: column;
}

.dv-form-group label {
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.dv-counter-box {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.dv-counter-btn {
    width: 44px;
    height: 44px;
    background: #f8fafc;
    border: none;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dv-counter-btn:hover {
    background: #e2e8f0;
}

.dv-counter-value {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.dv-input-field {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.dv-input-field:focus {
    border-color: #0284c7;
}

/* Group Types */
.dv-group-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.dv-group-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.dv-group-card.selected {
    border-color: #0284c7;
    background: #f0f9ff;
}

.dv-group-icon {
    font-size: 26px;
    margin-bottom: 6px;
}

.dv-group-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* Perks / Extras Step */
.dv-perks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.dv-perk-card {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.dv-perk-card:hover {
    border-color: #cbd5e1;
}

.dv-perk-card.selected {
    border-color: #0284c7;
    background: #f0f9ff;
}

.dv-perk-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.dv-perk-info {
    flex: 1;
}

.dv-perk-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 3px;
}

.dv-perk-desc {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
}

/* Step 5: Summary Ticket */
.dv-ticket-preview {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    padding: 28px;
    color: #ffffff;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
}

.dv-ticket-preview::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.dv-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.dv-ticket-badge {
    background: #0284c7;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.dv-ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.dv-ticket-item-label {
    font-size: 11.5px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.dv-ticket-item-val {
    font-size: 14.5px;
    font-weight: 800;
    color: #f8fafc;
}

/* Stepper Controls Buttons */
.dv-builder-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.dv-btn-prev {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.dv-btn-prev:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.dv-btn-next {
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dv-btn-next:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.dv-btn-submit-wa {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.25s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px -3px rgba(16, 185, 129, 0.4);
    text-decoration: none;
}

.dv-btn-submit-wa:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -3px rgba(16, 185, 129, 0.5);
    color: #ffffff;
}

@media (max-width: 768px) {
    .dv-builder-card {
        padding: 24px 18px;
    }
    .dv-stepper-nav::before,
    .dv-stepper-nav-progress {
        display: none;
    }
    .dv-step-circle {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
    .dv-step-label {
        font-size: 11px;
    }
    .dv-builder-title {
        font-size: 1.7rem;
    }
}
