/* SMS Booking Form Styles */
.sms-booking-wrapper {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sms-booking-title {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.sms-booking-form {
    position: relative;
}

/* Steps */
.sms-booking-step {
    margin-bottom: 20px;
}

.step-title {
    color: #34495e;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

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

.form-group .required {
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

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

.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 input.error,
.form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group .error-message {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

.form-group .form-help {
    display: block;
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 5px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background-color: #219a52;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.btn-link {
    background: none;
    color: #3498db;
    text-decoration: underline;
    border: none;
    padding: 5px 10px;
    min-width: auto;
}

.btn-link:hover:not(:disabled) {
    color: #2980b9;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    align-items: center;
}

.form-actions .btn:first-child {
    margin-right: auto;
}

/* Messages */
.sms-booking-messages {
    margin-bottom: 20px;
}

.sms-booking-success,
.sms-booking-error {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: 500;
}

.sms-booking-success {
    background-color: #d5f4e6;
    color: #27ae60;
    border: 1px solid #27ae60;
}

.sms-booking-error {
    background-color: #fadbd8;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* OTP Section */
.otp-info {
    background-color: #ebf3fd;
    border: 1px solid #3498db;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.otp-info p {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.phone-display {
    font-weight: 600;
    color: #3498db;
}

.otp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
}

.otp-timer {
    color: #7f8c8d;
}

.otp-timer .countdown {
    font-weight: 600;
    color: #e74c3c;
}

/* Booking Summary */
.booking-summary {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.booking-summary h5 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-item .label {
    font-weight: 500;
    color: #6c757d;
}

.summary-item .value {
    font-weight: 600;
    color: #2c3e50;
}

.verification-status {
    text-align: center;
    margin-top: 15px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #d5f4e6;
    color: #27ae60;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.checkmark {
    background-color: #27ae60;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

/* Success Step */
.success-content {
    text-align: center;
    padding: 30px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #27ae60;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.success-content h4 {
    color: #27ae60;
    font-size: 24px;
    margin-bottom: 10px;
}

.success-content p {
    color: #6c757d;
    margin-bottom: 15px;
}

.booking-id {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}

.booking-id .id-value {
    color: #3498db;
    font-family: 'Courier New', monospace;
    font-size: 18px;
}

.success-note {
    font-size: 14px;
    color: #7f8c8d;
    font-style: italic;
}

/* Loading Overlay */
.sms-booking-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.loading-text {
    color: #7f8c8d;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sms-booking-wrapper {
        margin: 0 15px;
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .form-actions .btn:first-child {
        margin-right: 0;
        order: 2;
    }
    
    .otp-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .summary-item {
        flex-direction: column;
        gap: 5px;
    }
}

/* Animation for step transitions */
.sms-booking-step {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.sms-booking-step.fade-out {
    opacity: 0;
}

.sms-booking-step.fade-in {
    opacity: 1;
}

/* Input focus states */
.form-group input:focus + .error-message {
    display: none;
}

/* Custom checkbox/radio styles if needed */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

/* Progress indicator (optional) */
.booking-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 20px;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #bdc3c7;
    z-index: -1;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.active .progress-circle {
    background-color: #3498db;
    color: white;
}

.progress-step.completed .progress-circle {
    background-color: #27ae60;
    color: white;
}

.progress-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #bdc3c7;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    font-weight: bold;
    font-size: 14px;
}

.progress-label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
}