/* ===== GLOBAL FIX (VERY IMPORTANT) ===== */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;   /* ⛔ horizontal slide stop */
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ===== BODY ===== */
body {
    background: #f4f6f9;
    font-family: 'Noto Sans Tamil', sans-serif;
}

/* ===== WRAPPER ===== */
.contact-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 16px;
}

/* ===== TITLE ===== */
.contact-title {
    text-align: center;
    font-size: 20px;
    color: #0b3c5d;
    margin-bottom: 30px;
    border-bottom: 4px solid #0b3c5d;
    display: inline-block;
    padding-bottom: 8px;
    font-weight: 600;
}

/* ===== CARD ===== */
.contact-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 35px 35px 90px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    position: relative;
}

/* ===== ITEM ===== */
.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #f8fbff, #eef5ff);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* ===== ICON ===== */
.icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.icon.email {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
}

.icon.whatsapp {
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
}

/* ===== INFO TEXT ===== */
.info .label {
    font-size: 14px;
    color: #555;
    margin-bottom: 4px;
}

.info a {
    font-size: 14px;
    font-weight: 500;
    color: #0d47a1;
    text-decoration: none;
    word-break: break-word;
}

.info a:hover {
    text-decoration: underline;
}

/* ===== COMPLAINT BUTTON ===== */
.complaint-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #e60000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 15px;
    cursor: pointer;
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 11000;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

/* ===== MODAL BOX ===== */
.modal-box {
    background: #fff;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 22px;
    border-radius: 12px;
    position: relative;
}

/* ===== CLOSE BUTTON ===== */
.close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 22px;
    cursor: pointer;
}

/* ===== FORM ===== */
.modal-box h3 {
    margin-bottom: 22px;
    font-size: 18px;
}

.modal-box label {
    font-size: 13px;
}

.modal-box input,
.modal-box select,
.modal-box textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 13px;
}

.submit-btn {
    background: #0056d2;
    color: #fff;
    border: none;
    width: 100%;
    padding: 11px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

/* ================= MOBILE & SMALL DEVICES ================= */
@media (max-width: 768px) {

    /* 🔥 fixed header issue – safe dynamic space */
    body {
        padding-top: 260px;   /* NOT hard like 295 */
    }

    .contact-wrapper {
        margin: 20px auto;
    }

    .contact-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .contact-card {
        padding: 22px 18px 85px;
    }

    .contact-item {
        padding: 16px;
        gap: 14px;
    }

    .icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
        min-width: 52px;
    }

    .info a {
        font-size: 13px;
    }

    .complaint-btn {
        font-size: 14px;
        padding: 10px 26px;
    }

    .modal-box {
        max-width: 95%;
        padding: 18px;
    }
}
