:root {
    --orange: #E57F19;
    --orange-dark: #cc6f15;
}

/* ---------------- CONTACT PAGE TYPOGRAPHY ---------------- */
.contact-main {
    font-family: 'Roboto Slab', serif; /* English default */
    font-size: 16px;
    letter-spacing: 0.15px;
    line-height: 1.75;
    color: #2c2c2c;
    padding: 50px 20px;
}

/* Headings */
.contact-main h1,
.contact-main h2 {
    font-family: 'Roboto Slab', serif;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--orange);
    line-height: 1.3;
}

/* Body text, labels, inputs, buttons */
.contact-main p,
.contact-main label,
.contact-main input,
.contact-main button,
.contact-main textarea {
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.15px;
}

/* Language-specific typography */
.contact-main :lang(ml),
.contact-main :lang(ta),
.contact-main :lang(te),
.contact-main :lang(kn),
.contact-main :lang(hi),
.contact-main :lang(mr) {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    line-height: 1.95;
    letter-spacing: 0;
}

/* English-specific override */
.contact-main :lang(en) {
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.15px;
}

/* Contact container */
.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Left Section */
.left-card h2,
.form-card h2 {
    font-family: 'Roboto Slab', serif;
    color: var(--orange);
    margin-bottom: 15px;
}

.left-card p {
    color: #555;
    line-height: 1.6;
}

/* Form */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 2px solid #ddd;
    outline: none;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 2px rgba(229,127,25,0.2);
}

/* CAPTCHA */
.captcha-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 10px;
}

.captcha-box {
    flex: 0 0 80%;
    background: #f9f2ea;
    border: 2px dashed var(--orange);
    padding: 12px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 18px;
    border-radius: 6px;
}

.captcha-refresh {
    flex: 0 0 20%;
    background: #fff;
    border: 2px solid var(--orange);
    color: var(--orange);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6px;
    transition: 0.3s;
}

.captcha-refresh span {
    font-size: 10px;
    margin-top: 2px;
}

.captcha-refresh:hover {
    background: var(--orange);
    color: #fff;
}

/* Submit Button */
button {
    width: 100%;
    padding: 14px;
    background: var(--orange);
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: var(--orange-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Toasts */
.toast,
.success {
    font-family: 'Roboto Slab', serif;
}

/* Error messages in red */
.error {
    color: red;
    font-size: 14px;
    margin-top: 4px;
}

/* Toast styles */
#toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    display: none;
    z-index: 9999;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease-in-out;
}

/* Success toast (green) */
#toast.success {
    background-color: #28a745;
}

/* Error toast (red) */
#toast.error {
    background-color: #dc3545;
}

/* Show toast */
#toast.show {
    display: block;
    opacity: 1;
}
