/* ===================================
   Solidres Experience Styles
   =================================== */

/* Основной контейнер */
#solidres {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #2c3e50;
    background: #f8f9fa;
    min-height: 100vh;
    padding: 20px 0;
}

#sr-experience {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовок услуги */
.experience-header {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.experience-header h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    flex: 1;
    min-width: 0; /* позволяет тексту переноситься при необходимости */
}

.experience-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0; /* предотвращает сжатие кнопок */
}

.experience-header-content > div:first-child {
    /* Для виджета отзывов, если он есть */
}

/* Адаптивность для заголовка */
@media (max-width: 768px) {
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }
    
    .experience-header h1 {
        font-size: 28px;
        width: 100%;
    }
    
    .experience-header-content {
        width: 100%;
        justify-content: space-between;
    }
}

/* Для средних экранов */
@media (max-width: 1024px) and (min-width: 769px) {
    .experience-header h1 {
        font-size: 32px;
    }
}

/* Основная сетка */
.experience-main-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    align-items: start;
}

/* Галерея */
.experience-gallery {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Информация о туре */
.tour-info-container {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tour-info-title {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tour-info-title i {
    color: #3498db;
}

.tour-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

/* Информационные блоки */
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 20px;
    margin-top: 2px;
}

.info-item i.fa-clock { color: #3498db; }
.info-item i.fa-map-marker-alt:first-of-type { color: #e74c3c; }
.info-item i.fa-map-marker-alt:last-of-type { color: #27ae60; }
.info-item i.fa-language { color: #9b59b6; }
.info-item i.fa-male { color: #f39c12; }
.info-item i.fa-users { color: #3498db; }
.info-item i.fa-tags { color: #16a085; }
.info-item i.fa-car { color: #34495e; }

.info-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
}

/* Теги и транспорт */
.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.info-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: #ecf0f1;
    border-radius: 20px;
    color: #2c3e50;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-tags a:hover {
    background: #3498db;
    color: white;
}

/* Краткое описание */
.highlights-block {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.highlights-block h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.highlights-content {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
}

/* Табы */
.experience-tabs {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

#ExperienceDetailTabs .nav-tabs {
    border: none;
    background: #f8f9fa;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

#ExperienceDetailTabs .nav-tabs .nav-link {
    border: none;
    background: transparent;
    color: #7f8c8d;
    padding: 16px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 0;
}

#ExperienceDetailTabs .nav-tabs .nav-link:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

#ExperienceDetailTabs .nav-tabs .nav-link.active {
    color: #3498db;
    background: white;
    border-bottom: 3px solid #3498db;
}

#ExperienceDetailTabs .tab-content {
    padding: 32px;
}

#ExperienceDetailTabs .tab-pane {
    font-size: 16px;
    line-height: 1.7;
    color: #2c3e50;
}

/* Форма бронирования */
.sr-exp-bookform-container {
    position: sticky;
    top: 20px;
}

.price-header {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 24px;
    border-radius: 16px 16px 0 0;
    text-align: center;
}

.price-label {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.sr-exp-adult-price {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sr-exp-child-price {
    font-size: 24px;
    font-weight: 600;
    display: none;
}

.form-container {
    background: white;
    padding: 32px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-container fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.booking-safety {
    margin-top: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    color: #7f8c8d;
    text-align: center;
}

.booking-safety i {
    color: #3498db;
    margin-right: 8px;
}

/* Стили форм */
#solidres input[type="text"],
#solidres input[type="email"],
#solidres input[type="tel"],
#solidres input[type="date"],
#solidres input[type="time"],
#solidres input[type="number"],
#solidres select,
#solidres textarea,
#solidres .form-control,
#solidres .form-select {
    width: 100%;
    padding: 14px 16px !important;
    border: 2px solid #ecf0f1 !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    margin-bottom: 16px !important;
    background: white !important;
    color: #2c3e50 !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

#solidres input:focus,
#solidres select:focus,
#solidres textarea:focus,
#solidres .form-control:focus,
#solidres .form-select:focus {
    border-color: #3498db !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15) !important;
}

#solidres label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

#solidres button[type="submit"],
#solidres .btn-primary {
    width: 100%;
    padding: 18px !important;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3) !important;
}

#solidres button[type="submit"]:hover,
#solidres .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4) !important;
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%) !important;
}

/* Календарь */
#solidres input[type="date"]::-webkit-calendar-picker-indicator {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%233498db" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>') center/80% no-repeat;
    cursor: pointer;
    padding: 4px;
}

/* Copyright */
.experience-copyright {
    text-align: center;
    padding: 40px 20px 20px;
    color: #7f8c8d;
    font-size: 14px;
}

.experience-copyright a {
    color: #3498db;
    text-decoration: none;
}

/* Мобильное сворачивание описания */
@media (max-width: 768px) {
    .mobile-collapse {
        position: relative;
        max-height: 80px;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .mobile-collapse.expanded {
        max-height: none;
    }
    
    .mobile-collapse:not(.expanded)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40px;
        background: linear-gradient(to bottom, transparent, white);
    }
    
    .expand-btn {
        display: block;
        width: 100%;
        padding: 12px;
        margin-top: 12px;
        background: #3498db;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .expand-btn:hover {
        background: #2980b9;
    }
}

@media (min-width: 769px) {
    .expand-btn {
        display: none;
    }
}

/* Адаптивность */
@media (max-width: 1024px) {
    .experience-main-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    #solidres {
        padding: 12px 0 !important;
        overflow-x: hidden !important;
    }
    
    #sr-experience {
        padding: 0 12px !important;
    }
    
      
    .experience-header,
    .tour-info-container,
    .highlights-block,
    .experience-tabs,
    .form-container {
        padding: 20px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .sr-exp-bookform-container {
        position: relative !important;
        top: 0 !important;
    }
    
    #ExperienceDetailTabs .tab-content {
        padding: 20px !important;
    }
}
/* ===================================
   Форма бронирования
   =================================== */

/* Основной контейнер формы */
#sr-experience-form {
    max-width: 1200px;
    margin: 0 auto;
}

/* Секция сводки бронирования */
#sr-experience-form .summary-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#sr-experience-form .summary-section h3 {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

#sr-experience-form .summary-section h3 i {
    font-size: 28px;
}

/* Строки сводки */
#sr-experience-form .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

#sr-experience-form .summary-row:last-child {
    border-bottom: none;
}

#sr-experience-form .summary-label {
    font-size: 16px;
    opacity: 0.9;
}

#sr-experience-form .summary-value {
    font-size: 18px;
    font-weight: 600;
}

#sr-experience-form .summary-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid rgba(255,255,255,0.3);
}

#sr-experience-form .summary-total .summary-value {
    font-size: 28px;
    font-weight: 700;
}

/* Секция купона */
#sr-experience-form .coupon-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

#sr-experience-form .coupon-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

#sr-experience-form .coupon-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

#sr-experience-form .coupon-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
}

#sr-experience-form .coupon-button {
    padding: 14px 24px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#sr-experience-form .coupon-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* Форма гостя */
#sr-experience-form .guest-form-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

#sr-experience-form .guest-form-section h3 {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    padding-bottom: 16px;
    border-bottom: 2px solid #ecf0f1;
}

/* Группы полей */
#sr-experience-form .form-group {
    margin-bottom: 20px;
}

#sr-experience-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Поля формы */
#sr-experience-form input[type="text"],
#sr-experience-form input[type="email"],
#sr-experience-form input[type="tel"],
#sr-experience-form input[type="number"],
#sr-experience-form input[type="date"],
#sr-experience-form select,
#sr-experience-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
    font-family: inherit;
}

#sr-experience-form input:focus,
#sr-experience-form select:focus,
#sr-experience-form textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
}

#sr-experience-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

#sr-experience-form .required::after {
    content: " *";
    color: #e74c3c;
}

/* Секция активностей */
#sr-experience-form .activity-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

#sr-experience-form .activity-section h3 {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    padding-bottom: 16px;
    border-bottom: 2px solid #ecf0f1;
}

/* Дополнительные услуги */
#sr-experience-form .extra-item {
    padding: 16px;
    margin-bottom: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

#sr-experience-form .extra-item:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

#sr-experience-form .extra-item.selected {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

#sr-experience-form .extra-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

#sr-experience-form .extra-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#sr-experience-form .extra-item-title {
    flex: 1;
    font-weight: 600;
    color: #2c3e50;
}

#sr-experience-form .extra-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #27ae60;
}

#sr-experience-form .extra-item-description {
    margin-top: 8px;
    padding-left: 32px;
    color: #7f8c8d;
    font-size: 14px;
}

/* Секция оплаты */
#sr-experience-form .payment-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

#sr-experience-form .payment-section h3 {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    padding-bottom: 16px;
    border-bottom: 2px solid #ecf0f1;
}

/* Методы оплаты */
#sr-experience-form .payment-method {
    padding: 16px;
    margin-bottom: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

#sr-experience-form .payment-method:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

#sr-experience-form .payment-method.selected {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

#sr-experience-form .payment-method label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

#sr-experience-form .payment-method input[type="radio"] {
    width: 20px;
    height: 20px;
}

#sr-experience-form .payment-method-info {
    flex: 1;
}

#sr-experience-form .payment-method-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

#sr-experience-form .payment-method-description {
    font-size: 14px;
    color: #7f8c8d;
}

#sr-experience-form .payment-method-logo {
    max-height: 40px;
    max-width: 100px;
}

#sr-experience-form .surcharge {
    margin-left: auto;
    font-size: 14px;
    font-weight: 600;
}

#sr-experience-form .surcharge-amount {
    color: #e74c3c;
}

#sr-experience-form .surcharge-discount {
    color: #27ae60;
}

/* Условия и политика конфиденциальности */
#sr-experience-form fieldset:last-of-type {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

#sr-experience-form fieldset:last-of-type label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    font-weight: normal;
}

#sr-experience-form #sr-exp-toc {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

#sr-experience-form fieldset:last-of-type a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

#sr-experience-form fieldset:last-of-type a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Кнопки действий */
#sr-experience-form .actions {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid #ecf0f1;
}

#sr-experience-form .btn-group {
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

#sr-experience-form .btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#sr-experience-form .btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

#sr-experience-form .btn-secondary:hover {
    background: #dfe6e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#sr-experience-form .btn-primary {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

#sr-experience-form .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
}

#sr-experience-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Состояние загрузки */
#sr-experience-form .loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

#sr-experience-form .loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивность для формы */
@media (max-width: 768px) {
    #sr-experience-form .summary-section,
    #sr-experience-form .coupon-section,
    #sr-experience-form .guest-form-section,
    #sr-experience-form .activity-section,
    #sr-experience-form .payment-section {
        padding: 20px;
        border-radius: 12px;
    }
    
    #sr-experience-form .form-row {
        grid-template-columns: 1fr;
    }
    
    #sr-experience-form .coupon-wrapper {
        flex-direction: column;
    }
    
    #sr-experience-form .coupon-button {
        width: 100%;
    }
    
    #sr-experience-form .btn-group {
        flex-direction: column;
    }
    
    #sr-experience-form .btn {
        width: 100%;
        justify-content: center;
    }
    
    #sr-experience-form .payment-method label {
        flex-wrap: wrap;
    }
    
    #sr-experience-form .payment-method-logo {
        margin-left: 32px;
    }
}

/* Модальные окна */
.modal-content {
    border-radius: 16px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 24px;
}

.modal-header h5 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-body {
    padding: 32px;
}

.modal-footer {
    border-top: 1px solid #ecf0f1;
    padding: 20px 24px;
}

/* Tooltip для подсказок */
.tooltip-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-left: 8px;
}

.tooltip-icon:hover {
    background: #2980b9;
}

/* Анимации при фокусе */
#sr-experience-form input:focus,
#sr-experience-form select:focus,
#sr-experience-form textarea:focus {
    animation: focusPulse 0.3s ease;
}

@keyframes focusPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Прогресс-бар для многошаговой формы (если потребуется) */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
}

.form-progress::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ecf0f1;
    z-index: 0;
}

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

.form-progress-step-number {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #7f8c8d;
}

.form-progress-step.active .form-progress-step-number {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.form-progress-step.completed .form-progress-step-number {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.form-progress-step-label {
    font-size: 14px;
    color: #7f8c8d;
    text-align: center;
}

.form-progress-step.active .form-progress-step-label {
    color: #3498db;
    font-weight: 600;
}
/* ===================================
   Дополнительные стили форм бронирования
   =================================== */

/* Основной контейнер форм */
.guestform,
.tour-info {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Легенды и заголовки */
.tour-info legend {
    width: 100%;
    margin: 0 0 24px 0;
    padding: 0 0 16px 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tour-info legend .badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Алерты */
.tour-info .alert {
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    background: rgba(52, 152, 219, 0.1);
    color: #2980b9;
    font-size: 15px;
    line-height: 1.6;
}

.tour-info .alert-info {
    background: rgba(52, 152, 219, 0.1);
    color: #2980b9;
}

/* Купон секция */
.coupon_exp {
    margin-bottom: 0;
}

.coupon_exp .input-group,
.coupon_exp .input-append {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.coupon_exp input[type="text"] {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.coupon_exp input[type="text"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
}

.coupon_exp .btn-secondary {
    padding: 14px 24px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.coupon_exp .btn-secondary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* Статус купона */
.coupon_exp .help-inline {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
}

.coupon_exp .help-inline.accepted {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.coupon_exp .help-inline.rejected {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.coupon_exp .help-inline a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    margin-left: 8px;
}

/* Примененные купоны */
#exp-help-remove {
    margin-top: 16px;
    font-size: 14px;
    color: #7f8c8d;
}

#exp-help-remove .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #27ae60;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-left: 8px;
}

#exp-help-remove .badge a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#exp-help-remove .badge a:hover {
    opacity: 1;
}

/* Форма гостевой информации */
.guestinfo .form-group {
    margin-bottom: 20px;
}

.guestinfo label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.guestinfo label .required {
    color: #e74c3c;
}

.guestinfo input[type="text"],
.guestinfo input[type="email"],
.guestinfo input[type="tel"],
.guestinfo select,
.guestinfo textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
}

.guestinfo input:focus,
.guestinfo select:focus,
.guestinfo textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
}

/* Регистрация */
.register {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid #ecf0f1;
}

.register .form-check {
    margin-bottom: 20px;
}

.register .form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.register .form-check-label {
    font-size: 16px;
    color: #2c3e50;
    cursor: pointer;
}

/* Активности/Участники */
.activity {
    background: white;
}

.activity .participant-group {
    margin-bottom: 32px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
}

.activity .participant-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.activity .participant-title i {
    color: #3498db;
    font-size: 24px;
}

.activity .participant-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.activity .participant-item h5 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #7f8c8d;
}

.activity .participant-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

/* Методы оплаты */
.payment {
    background: white;
}

.payment .form-check {
    padding: 20px;
    margin-bottom: 16px;
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment .form-check:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.payment .form-check input[type="radio"]:checked + label {
    font-weight: 600;
}

.payment .form-check input[type="radio"]:checked ~ * {
    display: block;
}

.payment .form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.payment .form-check-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
    color: #2c3e50;
    margin: 0;
}

.payment .payment-logo {
    max-height: 40px;
    width: auto;
}

.payment .help-inline {
    margin-left: auto;
    color: #3498db;
    cursor: pointer;
}

.payment .help-inline:hover {
    color: #2980b9;
}

/* Карточные формы платежей */
.payment .card-form {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.payment input[type="radio"]:checked ~ .card-form {
    display: block;
}

/* Страница перенаправления на оплату */
.sr-exp-final-message {
    max-width: 600px;
    margin: 50px auto;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.sr-exp-final-message h2 {
    margin: 0 0 24px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.sr-exp-final-message p {
    font-size: 16px;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 32px;
}

.sr-exp-final-message .spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 24px;
}

/* Поповеры */
.popover {
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.15);
}

.popover-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px 12px 0 0;
    padding: 12px 16px;
    font-weight: 600;
}

.popover-body {
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
}

/* Адаптивность для всех форм */
@media (max-width: 768px) {
    .guestform,
    .tour-info {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .tour-info legend {
        font-size: 20px;
    }
    
    .coupon_exp .input-group,
    .coupon_exp .input-append {
        flex-direction: column;
    }
    
    .coupon_exp .btn-secondary {
        width: 100%;
    }
    
    .activity .participant-fields {
        grid-template-columns: 1fr;
    }
    
    .payment .form-check-label {
        flex-wrap: wrap;
    }
    
    .payment .payment-logo {
        margin-bottom: 8px;
    }
    
    .register > div[class*="col-"] {
        width: 100%;
        margin-bottom: 16px;
    }
}

/* Анимация загрузки */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Состояния валидации */
.has-error input,
.has-error select,
.has-error textarea {
    border-color: #e74c3c !important;
}

.has-error .help-block {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 4px;
}

.has-success input,
.has-success select,
.has-success textarea {
    border-color: #27ae60 !important;
}

.has-success .help-block {
    color: #27ae60;
    font-size: 14px;
    margin-top: 4px;
}

/* Checkbox и Radio стилизация */
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    position: relative;
    cursor: pointer;
}

.form-check input[type="checkbox"]:checked::after,
.form-check input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-check input[type="checkbox"]:checked::after {
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.form-check input[type="radio"]:checked::after {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.form-check input[type="checkbox"]:checked,
.form-check input[type="radio"]:checked {
    background: #3498db;
    border-color: #3498db;
}

/* Кнопка отправки формы */
.tour-info .btn-success,
.tour-info button[type="submit"] {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

.tour-info .btn-success:hover,
.tour-info button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
}

/* Privacy consent */
.checkbox.inline {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
}

.checkbox.inline input[type="checkbox"] {
    margin-top: 2px;
}

.checkbox.inline label {
    font-size: 14px;
    line-height: 1.5;
    color: #7f8c8d;
}

.checkbox.inline a {
    color: #3498db;
    text-decoration: underline;
}
/* ===================================
   Расширяемый текстовый блок (только для long-desc)
   ФИНАЛЬНАЯ ВЕРСИЯ - УДАЛИТЕ ВСЕ ДРУГИЕ ВЕРСИИ!
   =================================== */

/* Клиппер: первые 5 линий + фад-аут (только для long-desc) */
.text-preview__content.long-desc .clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;          /* обрезаем по 5 строк */
    overflow: hidden;
    position: relative;
    line-height: 1.5em;             /* ваша высота строки */
    max-height: calc(5 * 1.5em);

    /* один-единственный градиент-маск внизу */
    mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}

/* Кнопка «Еще…» сразу после текста */
.text-preview__content.long-desc .show-more {
    display: inline-block;
    margin: 0.5em 0 0 0;
    font: inherit;
    font-weight: bold;
    color: #007BFF;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    vertical-align: bottom;
    padding: 0;
    transition: color .2s;
}

.text-preview__content.long-desc .show-more:hover {
    color: #0056b3;             /* темнее при ховере */
}

/* Развёрнутое состояние */
.text-preview__content.long-desc.expanded .clamp {
    -webkit-line-clamp: unset;
    max-height: none;
    mask-image: none;
    -webkit-mask-image: none;
}

.text-preview__content.long-desc.expanded .show-more {
    display: none;              /* спрятать кнопку */
}

/* Фоллбэк, если браузер не понимает -webkit-line-clamp */
@supports not (-webkit-line-clamp: 5) {
    .text-preview__content.long-desc .clamp {
        max-height: calc(5 * 1.5em);
        overflow: hidden;
    }
}