/* Rezervasyon Sayfası - Profesyonel Tasarım */

.reservation-container {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    padding: 60px 0;
}

.reservation-container .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Grid */
.reservation-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* Form Section */
.reservation-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    padding: 40px;
    color: white;
}

.form-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.form-header p {
    font-size: 16px;
    margin: 0;
    opacity: 0.95;
}

/* Tour Badge */
.tour-info {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tour-info strong {
    font-size: 16px;
    font-weight: 600;
}

.tour-info .price {
    font-size: 20px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    border-radius: 20px;
}

/* Form Body */
.form-body {
    padding: 40px;
}

.res-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form Section */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #e74c3c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    font-size: 16px;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-col.full {
    grid-column: 1 / -1;
}

/* Labels */
.res-form label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.2px;
}

/* Inputs */
.res-form input[type="text"],
.res-form input[type="tel"],
.res-form input[type="date"],
.res-form input[type="email"],
.res-form select,
.res-form textarea {
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    background: #ffffff;
    transition: all 0.2s ease;
}

.res-form input:focus,
.res-form select:focus,
.res-form textarea:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.res-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Select Dropdown Styling */
.res-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e74c3c' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.res-form select option {
    padding: 10px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Number Control */
.number-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fc;
    padding: 8px;
    border-radius: 8px;
    width: fit-content;
}

.number-control input {
    width: 70px;
    text-align: center;
    padding: 10px;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    background: white;
}

.num-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #e74c3c;
    color: white;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.num-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.num-btn:active {
    transform: scale(0.95);
}

/* Checkbox Options */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.checkbox-label:hover {
    border-color: #e74c3c;
    background: #fff5f5;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #e74c3c;
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: #e74c3c;
    font-weight: 600;
}

.checkbox-label span {
    font-size: 15px;
    color: #1a1a1a;
    transition: all 0.2s;
}

/* Submit Button */
.submit-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.3);
    letter-spacing: 0.3px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Message */
.success-box {
    text-align: center;
    padding: 60px 40px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(17, 153, 142, 0.3);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.success-box h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.success-box p {
    font-size: 16px;
    color: #666;
    margin: 0 0 32px 0;
}

.wa-btn {
    padding: 14px 28px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.wa-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 20px;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.sidebar-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-card h3 i {
    color: #e74c3c;
    font-size: 24px;
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-item i {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: #e74c3c;
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #1a1a1a;
}

.features-list li i {
    width: 24px;
    height: 24px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

/* Custom Dropdown - Modal Style */
.custom-select-wrapper {
    position: relative;
}

.custom-select-trigger {
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 15px;
    color: #1a1a1a;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.custom-select-trigger:hover {
    border-color: #e74c3c;
}

.custom-select-trigger.active {
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.custom-select-trigger .arrow {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: #e74c3c;
    font-size: 12px;
}

.custom-select-trigger.active .arrow {
    transform: rotate(180deg);
}

.custom-select-trigger .placeholder {
    color: #999;
}

/* Modal Overlay */
.custom-select-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-select-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Dropdown */
.custom-select-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 90vw;
    width: 500px;
    max-height: 70vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.custom-select-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.custom-select-header {
    padding: 20px 24px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.custom-select-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.custom-select-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
}

.custom-select-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.custom-select-search {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.custom-select-search input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.custom-select-search input:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.custom-select-options {
    overflow-y: auto;
    padding: 8px;
    flex: 1;
}

.custom-select-options::-webkit-scrollbar {
    width: 8px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 4px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.custom-select-option {
    padding: 14px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.custom-select-option:hover {
    background: linear-gradient(135deg, #e74c3c15 0%, #c0392b15 100%);
}

.custom-select-option.selected {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    font-weight: 600;
}

.custom-select-option .option-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.4;
}

.custom-select-option .option-price {
    font-weight: 700;
    font-size: 14px;
    background: rgba(231, 76, 60, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    color: #e74c3c;
}

.custom-select-option.selected .option-price {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.custom-select-option .check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: transparent;
    transition: all 0.2s ease;
}

.custom-select-option.selected .check-icon {
    background: white;
    border-color: white;
    color: #e74c3c;
}

.custom-select-empty {
    padding: 40px 24px;
    text-align: center;
    color: #999;
    font-size: 15px;
}

/* Hide original select */
.custom-select-wrapper select {
    display: none;
}

/* Tour Info Display */
.tour-info-display {
    margin-top: 16px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tour-info-card {
    background: linear-gradient(135deg, #e74c3c15 0%, #c0392b15 100%);
    border: 2px solid #e74c3c30;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.tour-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.tour-info-item i {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.tour-info-item span {
    color: #e74c3c;
}

/* Responsive */
@media (max-width: 991px) {
    .reservation-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    .reservation-container {
        padding: 30px 0;
    }
    
    .form-header {
        padding: 30px 24px;
    }
    
    .form-header h1 {
        font-size: 26px;
    }
    
    .form-body {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .sidebar-card {
        padding: 24px;
    }
    
    .number-control {
        width: 100%;
        justify-content: space-between;
    }
    
    .custom-select-dropdown {
        width: 95vw;
        max-height: 80vh;
    }
    
    .custom-select-header {
        padding: 16px 20px;
    }
    
    .custom-select-header h3 {
        font-size: 16px;
    }
    
    .custom-select-search {
        padding: 12px 16px;
    }
}


/* Ana sayfa rezervasyon formu - Checkbox'lar yan yana */
.form-extras {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
    flex: 0 1 auto;
    white-space: nowrap;
}

.checkbox-label:hover {
    border-color: #e74c3c;
    background: #fff5f5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.checkbox-label input[type="checkbox"]:checked + span,
.checkbox-label:has(input[type="checkbox"]:checked) {
    color: #e74c3c;
    font-weight: 600;
}

.checkbox-label span {
    font-size: 14px;
    color: #333;
    user-select: none;
}

@media (max-width: 768px) {
    .form-extras {
        flex-direction: column;
        gap: 10px;
    }
    
    .checkbox-label {
        width: 100%;
        justify-content: flex-start;
    }
}


/* ============================================
   RTL (Arapça) Düzeltmeleri - Rezervasyon
   ============================================ */

[dir="rtl"] .reservation-container {
    direction: rtl;
}

[dir="rtl"] .reservation-grid {
    direction: ltr;
}

[dir="rtl"] .reservation-box {
    direction: rtl;
}

[dir="rtl"] .form-header {
    text-align: center;
}

[dir="rtl"] .form-row {
    direction: ltr;
}

[dir="rtl"] .form-col {
    direction: rtl;
}

[dir="rtl"] .form-col label {
    text-align: right;
}

[dir="rtl"] .form-col input,
[dir="rtl"] .form-col select,
[dir="rtl"] .form-col textarea {
    direction: ltr;
    text-align: left;
}

[dir="rtl"] .number-control {
    direction: ltr;
}

[dir="rtl"] .checkbox-group {
    direction: ltr;
}

[dir="rtl"] .checkbox-label {
    flex-direction: row;
}

[dir="rtl"] .sidebar {
    direction: rtl;
}

[dir="rtl"] .sidebar-card {
    text-align: right;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .features-list {
    text-align: right;
}

[dir="rtl"] .submit-btn {
    direction: ltr;
}
