/* ----------------------------------
   Contact Information Modal Styles
   Derived from test.html
   ---------------------------------- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    width: 100%;
    max-width: 420px;
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalFadeIn 0.3s ease-out;
    position: relative;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background-color: var(--modal-primary, #2b6a50);
    padding: 30px 30px 24px 30px;
    color: #ffffff;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 5px;
}

.close-btn:hover {
    opacity: 1;
}

.close-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    color: #ffffff;
    margin-top: 0;
}

.modal-header p {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin: 0;
}

.modal-body {
    padding: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-item:last-of-type {
    margin-bottom: 28px;
    /* Maintain gap before WhatsApp button */
}

.icon-box-modal {
    width: 48px;
    height: 48px;
    background-color: #eaf3ef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box-modal svg {
    width: 20px;
    height: 20px;
    stroke: var(--modal-primary, #2b6a50);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.info-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 18px;
    font-weight: 600;
}

.info-value a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.info-value a:hover {
    color: var(--modal-primary, #2b6a50);
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background-color: #f2fbf5;
    border: 1px solid #dceddf;
    color: #1f2937;
    text-decoration: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: background-color 0.2s, border-color 0.2s;
}

.whatsapp-btn:hover {
    background-color: #e6f7eb;
    border-color: #c0dfcb;
}

.whatsapp-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #22c55e;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Theme Variatons */
/* Default (Index / Laundry / GST) */
.modal-overlay.theme-default {
    --modal-primary: #0B5546;
}

.modal-overlay.theme-laundry {
    --modal-primary: #0B5546;
}

.modal-overlay.theme-gst {
    --modal-primary: #38A169;
}

/* Practice / Client Mgmt */
.modal-overlay.theme-practice {
    --modal-primary: #3182CE;
}

.modal-overlay.theme-client-mgmt {
    --modal-primary: #3182CE;
}

/* Room */
.modal-overlay.theme-room {
    --modal-primary: #A0254E;
}

/* Service / Billing / Work Mgmt */
.modal-overlay.theme-service {
    --modal-primary: #983434;
}

.modal-overlay.theme-billing {
    --modal-primary: #D6442D;
}

.modal-overlay.theme-work-mgmt {
    --modal-primary: #7A40B9;
}

/* Expense / Office Billing */
.modal-overlay.theme-expense {
    --modal-primary: #805AD5;
}

.modal-overlay.theme-office-billing {
    --modal-primary: #3182CE;
}

/* Invoice */
.modal-overlay.theme-invoice {
    --modal-primary: #3182CE;
}