/* =============================================
   Alcadent India - Appointment Booking Styles
   ============================================= */

/* Step Progress Indicator */
.booking-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 0;
}

.booking-step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.step-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 14px;
    transition: color 0.4s ease;
}

.step-line {
    width: 60px;
    height: 3px;
    background-color: #e9ecef;
    margin: 0 15px;
    transition: background-color 0.4s ease;
    border-radius: 3px;
}

.booking-step.active .step-number {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border-color: rgba(37, 211, 102, 0.3);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.booking-step.active .step-label {
    color: #128C7E;
    font-weight: 600;
}

.booking-step.completed .step-number {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
}

.booking-step.completed .step-label {
    color: #128C7E;
}

.step-line.active {
    background: linear-gradient(90deg, #25D366, #128C7E);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeInStep 0.5s ease forwards;
}

.form-step.active {
    display: block;
}

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

/* Service Select Dropdown */
.appointment-form select.form-control {
    padding: 15px 20px;
    background-color: #ffffff;
    border: 1px solid var(--divider-color);
    border-radius: 40px;
    color: var(--text-color);
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L.575 3.4l.85-.85L6 7.125l4.575-4.575.85.85z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 45px;
    cursor: pointer;
}

.appointment-form select.form-control option[disabled] {
    color: #999;
}

.appointment-form select.form-control option.slot-full {
    color: #dc3545;
}

/* Textarea */
.appointment-form textarea.form-control {
    border-radius: 20px;
    min-height: 100px;
    resize: vertical;
}

/* OTP Section */
.otp-section {
    text-align: center;
    padding: 30px 0;
}

.otp-phone-display {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.otp-phone-display strong {
    color: #128C7E;
    font-size: 20px;
}

.otp-subtitle {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 15px;
}

.otp-input-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.otp-input {
    width: 55px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #dee2e6;
    border-radius: 14px;
    outline: none;
    transition: all 0.3s ease;
    color: #333;
    background-color: #f8f9fa;
}

.otp-input:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
    background-color: #fff;
}

.otp-input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.otp-input.success {
    border-color: #25D366;
    background-color: #f0fff4;
}

/* Resend OTP */
.resend-wrapper {
    margin-top: 20px;
    font-size: 14px;
    color: #6c757d;
}

.resend-timer {
    color: #dc3545;
    font-weight: 600;
}

.resend-btn {
    background: none;
    border: none;
    color: #128C7E;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    padding: 0;
}

.resend-btn:hover {
    color: #25D366;
}

.resend-btn:disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

/* Go Back Link */
.go-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
    transition: color 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
}

.go-back-link:hover {
    color: #128C7E;
}

/* Confirmation Section */
.confirmation-section {
    text-align: center;
    padding: 30px 0;
}

.confirmation-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: scaleIn 0.5s ease;
}

.confirmation-icon i {
    font-size: 40px;
    color: #fff;
}

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

.confirmation-title {
    font-size: 26px;
    font-weight: 700;
    color: #128C7E;
    margin-bottom: 10px;
}

.confirmation-subtitle {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 15px;
}

.confirmation-details {
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    margin: 0 auto 25px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 15px;
}

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

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

.detail-value {
    color: #333;
    font-weight: 600;
    text-align: right;
}

.booking-ref {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 12px;
    padding: 12px 25px;
    display: inline-block;
    margin-bottom: 20px;
}

.booking-ref span {
    font-weight: 700;
    color: #128C7E;
    font-size: 18px;
}

/* Alert Messages */
.appointment-alert {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    animation: fadeInStep 0.3s ease;
}

.appointment-alert.show {
    display: block;
}

.appointment-alert.alert-error {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
}

.appointment-alert.alert-success {
    background-color: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #276749;
}

.appointment-alert.alert-info {
    background-color: #ebf8ff;
    border: 1px solid #bee3f8;
    color: #2b6cb0;
}

/* Loading Spinner */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Action Buttons */
.appointment-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-verify {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    min-width: 200px;
}

.btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

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

/* Phone Input Group */
.phone-input-group {
    position: relative;
}

.phone-prefix {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 600;
    font-size: 15px;
    z-index: 2;
}

.phone-input-group .form-control {
    padding-left: 55px !important;
}

/* Responsive */
@media (max-width: 767px) {
    .booking-steps {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        padding-left: 20px;
    }

    .booking-step {
        margin-bottom: 5px;
    }

    .step-line {
        display: none;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .step-label {
        font-size: 13px;
    }

    .otp-input-wrapper {
        gap: 8px;
    }

    .otp-input {
        width: 45px;
        height: 50px;
        font-size: 20px;
        border-radius: 10px;
    }

    .appointment-form {
        padding: 30px 20px !important;
        border-radius: 25px !important;
    }

    .confirmation-details {
        padding: 20px 15px;
    }

    .detail-row {
        flex-direction: column;
        gap: 2px;
    }

    .detail-value {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .otp-input {
        width: 40px;
        height: 45px;
        font-size: 18px;
    }

    .btn-verify {
        width: 100%;
    }
}
