/* ═══════════════════════════════════════
   BASE.CSS — Global Styles for RSSP & Associates
   ═══════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
    /* Primary Palette */
    --primary: #1B3A5C;
    --primary-dark: #0F2440;
    --primary-light: #2A5A8C;
    --accent: #E8A23A;
    --accent-dark: #D4891A;
    --accent-light: #F5C770;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #ADB5BD;
    --gray-500: #6C757D;
    --gray-600: #495057;
    --gray-700: #343A40;
    --gray-800: #212529;
    --black: #111111;

    /* Semantic */
    --success: #28A745;
    --danger: #DC3545;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 80px 0;
    --header-height: 90px;

    /* Transitions */
    --transition: all 0.3s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 50px;
}

/* ─── Reset ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.25;
}

/* ─── Container ─── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 162, 58, 0.4);
}

.btn-blue {
    background: var(--primary);
    color: var(--white);
}

.btn-blue:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 58, 92, 0.4);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Global Button Group (.why-buttons) */
.why-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 36px;
}

.why-buttons .btn {
    padding: 16px 48px;
    font-size: 16px;
    min-width: 220px;
    justify-content: center;
}

/* ═══════════════════════════════════════
   FORM GLOBAL STYLES
   ═══════════════════════════════════════ */
input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-primary);
    font-size: 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-700);
    transition: var(--transition);
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--gray-400);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236C757D' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Captcha Row */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
}

.captcha-row input {
    flex: 1;
}

/* Form Row (side-by-side fields) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    margin-bottom: 14px;
}

/* ═══════════════════════════════════════
   RESPONSIVE — MOBILE (Global)
   ═══════════════════════════════════════ */
@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .why-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .why-buttons .btn {
        width: 100%;
    }
}

/* ═══════════════════════════════════════
   MODAL / POPUP FORM
   ═══════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-md);
    padding: 30px;
    position: relative;
    transform: translateY(-20px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    background: none; border: none;
    font-size: 28px; line-height: 1;
    color: var(--gray-500); cursor: pointer;
    transition: var(--transition);
}
.modal-close:hover {
    color: var(--danger);
}
.popup-form-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary);
    text-align: center;
}

/* ═══════════════════════════════════════
   FLOATING WHATSAPP BUTTON
   ═══════════════════════════════════════ */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.floating-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    background-color: #20b858;
    color: #fff;
}

/* Ensure it is mobile friendly and out of the way */
@media (max-width: 768px) {
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}

/* ═══════════════════════════════════════
   FLOATING CALL BUTTON
   ═══════════════════════════════════════ */
.floating-call {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.floating-call:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    background-color: var(--primary-light);
    color: var(--white);
}

@media (max-width: 768px) {
    .floating-call {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 20px;
    }
}