/* --- Appointment Modal Component --- */
/* Reusable appointment booking modal component */

.appointment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    padding: 20px;
    overflow-y: auto;
}

.appointment-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.appointment-modal {
    background: var(--card-background, #1a1a1a);
    border: 1px solid var(--border-color, #333);
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    max-height: calc(90vh + 50px);
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.appointment-modal-overlay.active .appointment-modal {
    transform: scale(1) translateY(0);
}

.appointment-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color, #e0e0e0);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.appointment-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.appointment-modal-close svg {
    width: 20px;
    height: 20px;
}

.appointment-modal-content {
    padding: 60px 40px 40px;
}

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

.appointment-modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.appointment-modal-header p {
    color: #a0a0a0;
    font-size: 1rem;
    line-height: 1.6;
}

.appointment-modal-form-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.appointment-modal-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.form-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color, #333);
    border-radius: 10px;
    color: var(--text-color, #e0e0e0);
    font-family: var(--primary-font, 'Inter', sans-serif);
    font-size: 1rem;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-group input[type="date"] {
    color-scheme: dark;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px;
    padding-right: 50px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color, #fff);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-group select:focus {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: var(--primary-font, 'Inter', sans-serif);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.appointment-modal-submit {
    margin-top: 10px;
    width: 100%;
    padding: 16px;
    background: transparent;
    color: var(--text-color, #e0e0e0);
    border: 1px solid var(--border-color, #333);
    border-radius: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.appointment-modal-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-color, #fff);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.appointment-modal-submit:hover {
    color: #111;
    border-color: var(--accent-color, #fff);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.appointment-modal-submit:hover::before {
    width: 300px;
    height: 300px;
}

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

/* Direct Contact Sidebar */
.appointment-modal-direct-contact {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color, #333);
    border-radius: 15px;
    padding: 30px;
    position: sticky;
    top: 20px;
}

.appointment-modal-direct-contact h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--text-color, #e0e0e0);
    font-weight: 600;
}

.direct-contact-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.direct-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color, #333);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.direct-contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color, #fff);
    transform: translateX(5px);
}

.direct-contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color, #333);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color, #fff);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.direct-contact-item:hover .direct-contact-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color, #fff);
    transform: scale(1.05);
}

.direct-contact-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.direct-contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    font-weight: 500;
}

.direct-contact-value {
    font-size: 0.95rem;
    color: var(--text-color, #e0e0e0);
    font-weight: 500;
}

.appointment-info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color, #333);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.appointment-info-box h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-color, #e0e0e0);
    margin-bottom: 12px;
    font-weight: 600;
}

.appointment-info-box p {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.6;
    margin: 0;
}

/* Success Message */
.appointment-success-message {
    text-align: center;
    padding: 40px 20px;
}

.appointment-success-message svg {
    color: var(--accent-color, #fff);
    margin-bottom: 20px;
}

.appointment-success-message h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color, #e0e0e0);
}

.appointment-success-message p {
    color: #a0a0a0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .appointment-modal-overlay {
        padding: 0;
        align-items: flex-start;
    }

    .appointment-modal {
        max-width: 100%;
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
        margin: 0;
        transform: translateY(100%);
    }

    .appointment-modal-overlay.active .appointment-modal {
        transform: translateY(0);
    }

    .appointment-modal-content {
        padding: 60px 20px 30px;
        max-height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .appointment-modal-header {
        margin-bottom: 25px;
    }

    .appointment-modal-header h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .appointment-modal-header p {
        font-size: 0.9rem;
    }

    .appointment-modal-form-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .appointment-modal-direct-contact {
        position: static;
        order: -1;
        padding: 20px;
        margin-bottom: 0;
    }

    .appointment-modal-direct-contact h3 {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }

    .direct-contact-items {
        gap: 12px;
        margin-bottom: 20px;
    }

    .direct-contact-item {
        padding: 12px;
        gap: 12px;
    }

    .direct-contact-item:hover {
        transform: none;
    }

    .direct-contact-icon {
        width: 40px;
        height: 40px;
    }

    .direct-contact-icon svg {
        width: 20px;
        height: 20px;
    }

    .appointment-info-box {
        padding: 18px;
        margin-top: 15px;
    }

    .appointment-modal-form {
        gap: 25px;
    }

    .form-group {
        gap: 10px;
    }

    .form-group label {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="date"],
    .form-group textarea,
    .form-group select {
        padding: 16px 20px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .form-group select {
        padding-right: 50px;
        background-position: right 20px center;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .appointment-modal-submit {
        padding: 14px;
        font-size: 0.85rem;
        margin-top: 5px;
    }

    .appointment-modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        padding: 8px;
    }

    .appointment-modal-close svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .appointment-modal-content {
        padding: 50px 15px 25px;
    }

    .appointment-modal-header h2 {
        font-size: 1.3rem;
    }

    .appointment-modal-header p {
        font-size: 0.85rem;
    }

    .appointment-modal-direct-contact {
        padding: 18px;
    }

    .direct-contact-item {
        padding: 10px;
    }

    .direct-contact-icon {
        width: 36px;
        height: 36px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="date"],
    .form-group textarea,
    .form-group select {
        padding: 16px 20px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .form-group select {
        padding-right: 50px;
        background-position: right 20px center;
    }
}

