/* Montenegro Travel Booking - Frontend Forms Styles */

.mtb-booking-form {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: visible; /* Changed from hidden to visible for custom pickers */
    font-family: 'Mont', sans-serif;
    position: relative; /* Ensure proper positioning for dropdowns */
}

.mtb-booking-form input,
.mtb-booking-form select,
.mtb-booking-form textarea,
.mtb-booking-form button {
    font-family: 'Mont', sans-serif;
}

.mtb-form-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
}

.mtb-form-section {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

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

.mtb-form-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #f47229;
    border-bottom: 2px solid #f47229;
    padding-bottom: 10px;
}

.mtb-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.mtb-form-row:last-child {
    margin-bottom: 0;
}

.mtb-form-group {
    flex: 1;
    margin-bottom: 20px;
}

.mtb-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.mtb-form-group input,
.mtb-form-group select,
.mtb-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Mont', sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.mtb-form-group input:focus,
.mtb-form-group select:focus,
.mtb-form-group textarea:focus {
    outline: none;
    border-color: #f47229;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.mtb-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Transfer Form Specific */
.mtb-price-display {
    text-align: center;
    font-size: 18px;
    color: #1A1A1A;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    position: relative;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mtb-price-loader {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(244, 114, 41, 0.2);
    border-top-color: #f47229;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}

.mtb-price-display.loading .mtb-price-loader {
    display: inline-block;
}

.mtb-price-display.loading #mtb-calculated-price {
    opacity: 0.5;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Car Rental Form Specific */
.mtb-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.mtb-vehicle-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.mtb-vehicle-card * {
    pointer-events: none;
}

.mtb-vehicle-card input[type="radio"],
.mtb-vehicle-card label {
    pointer-events: auto;
    cursor: pointer;
}

.mtb-vehicle-card:hover {
    border-color: #f47229;
    box-shadow: 0 4px 12px rgba(244, 114, 41, 0.15);
}

.mtb-vehicle-card.selected {
    border-color: #f47229;
    border-width: 3px;
    box-shadow: 0 4px 16px rgba(244, 114, 41, 0.3);
    background: linear-gradient(to bottom, rgba(244, 114, 41, 0.02), rgba(244, 114, 41, 0.05));
}

.mtb-vehicle-card.selected::before {
    content: '✓ Selected';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f47229;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mtb-vehicle-card input[type="radio"] {
    display: none;
}

.mtb-vehicle-card input[type="radio"]:checked + .mtb-vehicle-select {
    background: #f47229;
    color: white;
}

.mtb-vehicle-header {
    text-align: center;
    margin-bottom: 15px;
}

.mtb-vehicle-header h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.mtb-vehicle-price {
    font-size: 16px;
    font-weight: bold;
    color: #1A1A1A;
}

.mtb-vehicle-details {
    margin-bottom: 15px;
}

.mtb-vehicle-spec {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.mtb-vehicle-extras {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.mtb-vehicle-extras p {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.mtb-vehicle-select {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mtb-vehicle-card.selected .mtb-vehicle-select {
    background: #f47229;
    color: white;
    font-weight: bold;
}

.mtb-rental-duration {
    text-align: center;
    font-size: 16px;
    color: #f47229;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

/* Activity Form Specific */
.mtb-tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.mtb-tour-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.mtb-tour-card * {
    pointer-events: none;
}

.mtb-tour-card input[type="radio"],
.mtb-tour-card label,
.mtb-tour-card .mtb-itinerary-btn {
    pointer-events: auto;
    cursor: pointer;
}

.mtb-tour-card:hover {
    border-color: #f47229;
    box-shadow: 0 4px 12px rgba(244, 114, 41, 0.15);
}

.mtb-tour-card.selected {
    border-color: #f47229;
    border-width: 3px;
    box-shadow: 0 4px 16px rgba(244, 114, 41, 0.3);
    background: linear-gradient(to bottom, rgba(244, 114, 41, 0.02), rgba(244, 114, 41, 0.05));
}

.mtb-tour-card.selected::before {
    content: '✓ Selected';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f47229;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    animation: slideInRight 0.3s ease-out;
}

.mtb-tour-card input[type="radio"] {
    display: none;
}

.mtb-tour-card input[type="radio"]:checked + .mtb-tour-select {
    background: #f47229;
    color: white;
}

.mtb-tour-header {
    text-align: center;
    margin-bottom: 15px;
}

.mtb-tour-header h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.mtb-tour-category {
    display: inline-block;
    background: #f47229;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
}

.mtb-tour-price {
    font-size: 16px;
    font-weight: bold;
    color: #1A1A1A;
    margin-top: 5px;
}

.mtb-tour-details {
    margin-bottom: 15px;
}

.mtb-tour-description p {
    margin: 0 0 10px 0;
    color: #666;
    line-height: 1.5;
}

.mtb-tour-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.mtb-tour-itinerary-toggle {
    text-align: center;
    margin-bottom: 10px;
}

.mtb-itinerary-btn {
    background: #f8f9fa;
    color: #f47229;
    border: 1px solid #f47229;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Mont', sans-serif;
    transition: all 0.3s ease;
}

.mtb-itinerary-btn:hover {
    background: #f47229;
    color: white;
}

.mtb-tour-itinerary {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.mtb-itinerary-content {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Modern Itinerary Timeline Styles */
.mtb-itinerary-timeline {
    position: relative;
    padding: 20px 0;
}

.mtb-itinerary-step {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
    animation: fadeInUp 0.4s ease-out;
}

.mtb-itinerary-step:last-child {
    margin-bottom: 0;
}

.mtb-itinerary-step:last-child .mtb-step-marker::after {
    display: none;
}

.mtb-step-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f47229 0%, #ff8c42 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(244, 114, 41, 0.3);
    z-index: 2;
}

.mtb-step-marker::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 36px;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 10px);
    background: linear-gradient(to bottom, #f47229 0%, rgba(244, 114, 41, 0.3) 100%);
    z-index: 1;
}

.mtb-step-number {
    color: white;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

.mtb-step-content {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 3px solid #f47229;
    transition: all 0.3s ease;
}

.mtb-step-content:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.mtb-step-content p {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

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

.mtb-tour-select {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mtb-tour-card.selected .mtb-tour-select {
    background: #f47229;
    color: white;
    font-weight: bold;
}

.mtb-tour-card.selected .mtb-tour-select label,
.mtb-vehicle-card.selected .mtb-vehicle-select label {
    color: white;
}

.mtb-select-label {
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mtb-guest-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.mtb-guest-limits {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* Form Actions */
.mtb-form-actions {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
}

.mtb-submit-btn {
    background: #f47229;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-family: 'Mont', sans-serif;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 200px;
}

.mtb-submit-btn:hover {
    background: #005a87;
}

.mtb-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.mtb-loading {
    display: inline-block;
    margin-left: 10px;
    font-style: italic;
    color: #666;
}

/* Messages */
.mtb-message {
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
}

.mtb-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mtb-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mtb-form-row {
        flex-direction: column;
        gap: 0;
    }

    .mtb-vehicles-grid,
    .mtb-tours-grid {
        grid-template-columns: 1fr;
    }

    .mtb-form-section {
        padding: 20px;
    }

    .mtb-form-title {
        font-size: 24px;
    }

    .mtb-form-actions {
        padding: 20px;
    }

    .mtb-submit-btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
}

/* Loading States */
.mtb-form-loading {
    position: relative;
}

.mtb-form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
}

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

.mtb-booking-form {
    animation: fadeIn 0.5s ease-out;
}

/* ===== MULTI-STEP FORM STYLES ===== */

/* Progress Indicator */
.mtb-progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.mtb-progress-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.mtb-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 120px;
}

.mtb-progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: #f47229;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.mtb-progress-step.completed::after {
    background: #1A1A1A;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    position: relative;
    z-index: 2;
}

.mtb-progress-step.active .step-number {
    background: #f47229;
    color: white;
    border-color: #f47229;
}

.mtb-progress-step.completed .step-number {
    background: #1A1A1A;
    color: white;
    border-color: #1A1A1A;
}

.step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mtb-progress-step.active .step-label {
    color: #f47229;
    font-weight: 600;
}

.mtb-progress-step.completed .step-label {
    color: #1A1A1A;
}

/* Form Steps */
.mtb-form-step {
    display: none;
}

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

/* Step Navigation */
.mtb-step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mtb-nav-btn {
    padding: 12px 24px;
    border: 2px solid #f47229;
    background: #f47229;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Mont', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mtb-nav-btn:hover {
    background: #1A1A1A;
    border-color: #1A1A1A;
    transform: translateY(-2px);
}

.mtb-prev-btn {
    background: #f8f9fa;
    color: #f47229;
    border-color: #f47229;
}

.mtb-prev-btn:hover {
    background: #f47229;
    color: white;
}

/* Enhanced Price Display */
.mtb-price-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #f47229;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(244, 114, 41, 0.1);
}

.mtb-price-display strong {
    font-size: 18px;
    color: #f47229;
    display: block;
}

#mtb-calculated-price {
    font-size: 24px;
    font-weight: bold;
    color: #1A1A1A;
}

/* Responsive Multi-Step */
@media (max-width: 768px) {
    .mtb-progress-indicator {
        margin-bottom: 20px;
    }

    .mtb-progress-step {
        max-width: 80px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .step-label {
        font-size: 10px;
    }

    .mtb-step-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .mtb-nav-btn {
        width: 100%;
        padding: 14px;
    }

    .mtb-price-display {
        padding: 15px;
    }

    .mtb-price-display strong {
        font-size: 16px;
    }

    #mtb-calculated-price {
        font-size: 20px;
    }
}

/* Vehicle Availability Indicator */
.mtb-availability-status {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.mtb-availability-status.checking {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.mtb-availability-status.available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mtb-availability-status.unavailable {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mtb-availability-status::before {
    font-weight: bold;
    margin-right: 8px;
}

.mtb-availability-status.checking::before {
    content: "⏳";
}

.mtb-availability-status.available::before {
    content: "✓";
}

.mtb-availability-status.unavailable::before {
    content: "✗";
}

/* Vehicle Card Selection States */
.mtb-vehicle-card {
    position: relative;
    transition: all 0.3s ease;
}

.mtb-vehicle-card.selected {
    border-color: #f47229;
    box-shadow: 0 0 0 2px rgba(244, 114, 41, 0.2);
}

.mtb-vehicle-card.selected .mtb-vehicle-header {
    background: linear-gradient(135deg, #f47229, #e55d1b);
    color: white;
}

.mtb-vehicle-card.selected .mtb-vehicle-header h4 {
    color: white;
}

.mtb-vehicle-card.selected .mtb-vehicle-price {
    color: white;
    opacity: 0.9;
}

/* Rental Duration Display */
.mtb-rental-duration {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    text-align: center;
    margin-top: 20px;
}

.mtb-rental-duration strong {
    color: #333;
    font-size: 16px;
}