/* ============================================
   APPOINTMENT POPUP CSS
   ============================================ */

/* Popup Overlay */
.appointment-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.appointment-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.appointment-popup-container {
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.appointment-popup-overlay.active .appointment-popup-container {
    transform: scale(1) translateY(0);
}

/* Popup */
.appointment-popup {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Close Button */
.appointment-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(242, 140, 40, 0.1);
    border: none;
    border-radius: 50%;
    color: #F28C28;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.appointment-popup-close:hover {
    background: #F28C28;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

/* Popup Header */
.appointment-popup-header {
    padding: 2.5rem 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(242, 140, 40, 0.1) 0%, rgba(255, 122, 0, 0.05) 100%);
    border-bottom: 1px solid rgba(242, 140, 40, 0.2);
}

.appointment-popup-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.appointment-popup-title i {
    color: #F28C28;
    font-size: 1.5rem;
}

.appointment-popup-subtitle {
    color: #666;
    font-size: 0.9375rem;
    margin: 0;
}

/* Form */
.appointment-form {
    padding: 2rem;
}

.appointment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.appointment-form-group {
    display: flex;
    flex-direction: column;
}

.appointment-form-group:last-child {
    margin-bottom: 0;
}

.appointment-form-label {
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.appointment-form-label .required {
    color: #e74c3c;
}

.appointment-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9375rem;
    color: #1a1a2e;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.appointment-form-input:focus {
    outline: none;
    border-color: #F28C28;
    box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.1);
}

.appointment-form-input::placeholder {
    color: #9ca3af;
}

.appointment-form-input select {
    cursor: pointer;
    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='%231a1a2e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.appointment-form-input textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Form Actions */
.appointment-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.appointment-form-cancel,
.appointment-form-submit {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.appointment-form-cancel {
    background: #f3f4f6;
    color: #6b7280;
}

.appointment-form-cancel:hover {
    background: #e5e7eb;
    color: #1a1a2e;
}

.appointment-form-submit {
    background: linear-gradient(135deg, #F28C28, #FF7A00);
    color: white;
    box-shadow: 0 4px 15px rgba(242, 140, 40, 0.3);
}

.appointment-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 140, 40, 0.4);
}

.appointment-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-loading {
    display: none;
}

.submit-loading.active {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-text.hide {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .appointment-popup-container {
        max-width: 100%;
        max-height: 95vh;
    }
    
    .appointment-popup-header {
        padding: 2rem 1.5rem 1rem;
    }
    
    .appointment-popup-title {
        font-size: 1.5rem;
    }
    
    .appointment-form {
        padding: 1.5rem;
    }
    
    .appointment-form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .appointment-form-actions {
        flex-direction: column-reverse;
    }
    
    .appointment-form-cancel,
    .appointment-form-submit {
        width: 100%;
    }
    
    .appointment-popup-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }
}

/* Prevent body scroll when popup is open */
body.popup-open {
    overflow: hidden;
}



