* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    direction: rtl;
    text-align: right;
}

/* Back to Website Button */
.btn-back-to-website {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.btn-back-to-website:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
}

.btn-back-to-website:active {
    transform: translateY(0);
}

.back-arrow {
    font-size: 16px;
    font-weight: bold;
}

.back-text {
    display: inline-block;
}

@media (max-width: 600px) {
    .btn-back-to-website {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .back-text {
        display: none;
    }

    .back-arrow {
        font-size: 18px;
    }
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

.booking-form-wrapper {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h1 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

.required {
    color: #e74c3c;
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group select:hover,
.form-group input:hover,
.form-group textarea:hover {
    border-color: #3498db;
}

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

.form-group select:disabled {
    background-color: #ecf0f1;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-group small {
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 4px;
}

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

/* Queue Info Box */
.queue-info-container {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
    border: 2px solid #3498db;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.queue-info-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.queue-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.queue-info-label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 600;
    margin-bottom: 8px;
}

.queue-info-value {
    font-size: 24px;
    font-weight: bold;
    color: #1e3c72;
}

/* WhatsApp Message */
.whatsapp-message {
    background: linear-gradient(135deg, #25d366 0%, #20ba58 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

/* Booking Type Radio Buttons */
.booking-type-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.booking-type-option {
    position: relative;
}

.booking-type-option input[type="radio"] {
    display: none;
}

.booking-type-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
    min-height: 120px;
}

.booking-type-label:hover {
    border-color: #3498db;
    background-color: #f0f8ff;
}

.booking-type-option input[type="radio"]:checked + .booking-type-label {
    border-color: #1e3c72;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.booking-type-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.booking-type-price {
    font-size: 18px;
    font-weight: 700;
}

.booking-type-message {
    text-align: center;
    color: #7f8c8d;
    padding: 20px;
    background-color: #ecf0f1;
    border-radius: 6px;
    font-size: 14px;
}

/* Success Page */
.success-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    padding-top: 40px;
    overflow-y: auto;
}

.success-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease-out;
    overflow: visible;
    max-height: none;
}

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

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-title {
    font-size: 28px;
    color: #2c3e50;
    margin: 20px 0;
    font-weight: 700;
}

.booking-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    text-align: right;
    width: 100%;
    overflow: visible;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 600;
}

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

.booking-number {
    color: #f39c12;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.payment-note {
    color: #7f8c8d;
    font-size: 14px;
    margin: 20px 0;
}

.btn-payment {
    background: #000;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-payment:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-submit {
    padding: 14px 30px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(30, 60, 114, 0.3);
}

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

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

.message {
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    animation: slideIn 0.3s ease;
}

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

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

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

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 600px) {
    .booking-form-wrapper {
        padding: 20px;
    }

    .form-header h1 {
        font-size: 24px;
    }

    .form-group {
        gap: 5px;
    }
}

