/* Dead Sea Track Booking System Styles */

.dst-booking-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Aeonik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dst-rtl {
    direction: rtl;
    text-align: right;
}

.dst-rtl * {
    text-align: right;
}

.dst-ltr {
    direction: ltr;
    text-align: left;
}

.dst-ltr * {
    text-align: left;
}

/* Header */
.dst-header {
    text-align: center;
    margin-bottom: 40px;
}

.dst-logo {
    margin-bottom: 30px;
}

.dst-logo img {
    max-width: 200px;
    height: auto;
}

.dst-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dst-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px;
}

.dst-description p {
    margin-bottom: 15px;
}

/* Form Styles */
.dst-form {
    margin-top: 40px;
}

.dst-form-group {
    margin-bottom: 30px;
}

.dst-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.dst-rtl .dst-label {
    text-align: right;
}

.dst-input,
.dst-file-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.dst-rtl .dst-input,
.dst-rtl .dst-file-input,
.dst-rtl select,
.dst-rtl textarea {
    text-align: right;
    direction: rtl;
}

.dst-input:focus,
.dst-file-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

select.dst-input {
    cursor: pointer;
    background-color: white;
}

/* Radio Buttons */
.dst-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.dst-rtl .dst-radio-group {
    flex-direction: row-reverse;
}

.dst-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px 25px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.dst-ltr .dst-radio-label {
    flex-direction: row;
}

.dst-rtl .dst-radio-label {
    flex-direction: row-reverse;
    text-align: right;
}

.dst-radio-label:hover {
    border-color: #0073aa;
    background: #f8f9fa;
}

.dst-radio-label input[type="radio"] {
    margin: 0 10px 0 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.dst-rtl .dst-radio-label input[type="radio"] {
    margin: 0 0 0 10px;
}

.dst-radio-label input[type="radio"]:checked + span {
    font-weight: 700;
    color: #0073aa;
}

.dst-radio-label input[type="radio"]:checked {
    accent-color: #0073aa;
}

/* Calendar */
#dst-calendar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    margin: 20px 0;
}

.dst-rtl #dst-calendar {
    direction: ltr; /* Keep calendar LTR for proper date display */
}

.dst-rtl .fc-toolbar-title {
    direction: rtl; /* But month/year title in RTL */
}

.fc {
    font-family: inherit !important;
}

.fc-day-today {
    background-color: #e3f2fd !important;
}

.fc-daygrid-day:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

.fc-day-selected {
    background-color: #0073aa !important;
    color: white !important;
}

/* Time Slots */
.dst-time-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dst-rtl .dst-time-slots {
    direction: rtl;
}

.dst-time-input label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.dst-rtl .dst-time-input label {
    text-align: right;
}

.dst-time-input select {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dst-rtl .dst-time-input select {
    text-align: right;
    direction: rtl;
}

.dst-time-input select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.dst-time-input select option:disabled {
    color: #ccc;
    background: #f5f5f5;
    text-decoration: line-through;
}

.dst-time-input select option[disabled] {
    display: none; /* Hide disabled options completely */
}

.dst-time-availability {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.dst-rtl .dst-time-availability {
    text-align: right;
    direction: rtl;
}

.dst-time-availability.available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.dst-time-availability.unavailable {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* File Upload */
.dst-file-input {
    padding: 10px;
    cursor: pointer;
}

.dst-file-note {
    font-size: 13px;
    color: #777;
    margin-top: 5px;
}

.dst-rtl .dst-file-note {
    text-align: right;
}

/* Disclaimer */
.dst-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 20px;
    margin: 30px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #856404;
}

.dst-rtl .dst-disclaimer {
    text-align: right;
    direction: rtl;
}

.dst-disclaimer p {
    margin: 0;
}

/* Terms Checkbox */
.dst-terms-group {
    margin: 25px 0;
}

.dst-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 12px;
}

.dst-rtl .dst-checkbox-label {
    flex-direction: row-reverse;
    text-align: right;
}

.dst-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.dst-checkbox-label span {
    font-size: 15px;
    line-height: 1.6;
}

.dst-rtl .dst-checkbox-label span {
    text-align: right;
}

.dst-terms-link {
    color: #0073aa;
    text-decoration: underline;
    font-weight: 600;
}

.dst-terms-link:hover {
    color: #005177;
}

/* Submit Button */
.dst-submit-btn {
    width: 100%;
    padding: 16px 30px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    background: #0073aa;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dst-submit-btn:hover {
    background: #005177;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.dst-submit-btn:active {
    transform: translateY(0);
}

.dst-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.dst-message {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: none;
}

.dst-rtl .dst-message {
    text-align: right;
    direction: rtl;
}

.dst-message h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.dst-message p {
    margin: 0;
    line-height: 1.6;
}

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

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

/* Modal */
.dst-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dst-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dst-modal-close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.dst-modal-close:hover,
.dst-modal-close:focus {
    color: #000;
}

.dst-modal-body {
    padding: 30px 40px;
    max-height: 70vh;
    overflow-y: auto;
}

.dst-rtl .dst-modal-body {
    direction: rtl;
    text-align: right;
}

.dst-terms-content h2 {
    font-size: 28px;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.dst-rtl .dst-terms-content h2 {
    text-align: right;
}

.dst-terms-content ol {
    padding-left: 20px;
    line-height: 1.8;
}

.dst-rtl .dst-terms-content ol {
    padding-right: 20px;
    padding-left: 0;
    text-align: right;
}

.dst-terms-content li {
    margin-bottom: 15px;
    font-size: 15px;
    color: #444;
}

.dst-rtl .dst-terms-content li {
    text-align: right;
}

/* Loading State */
.dst-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.dst-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 #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .dst-booking-container {
        padding: 20px;
        margin: 20px;
    }
    
    .dst-title {
        font-size: 24px;
    }
    
    .dst-description {
        font-size: 14px;
    }
    
    .dst-time-slots {
        grid-template-columns: 1fr;
    }
    
    .dst-radio-group {
        flex-direction: column;
    }
    
    .dst-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .dst-modal-body {
        padding: 20px;
    }
}

@media print {
    .dst-booking-container {
        box-shadow: none;
    }
}
