/* === style.css === */
@import url('../responsive/responsive-main-css-components/responsive-button.css');
@import url('../responsive/responsive-main-css-components/responsive-navbar.css');
@import url('../main-css-components/style.css');
@import url('../main-css-components/navbar.css');
@import url('../main-css-components/button.css');
@import url('../main-css-components/footer.css');

/* ========== Base / tokens ========== */
:root {
    --brand: #7F265B;
    --radius-lg: 20px;
}

/* ========== Layout wrappers ========== */
.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    padding: clamp(16px, 3vw, 40px);
    /* breathing room on small screens */
    box-sizing: border-box;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    border-radius: 16px;
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    background: transparent;
    gap: 0;
    /* will use gap on stacked layout */
}

/* ========== Left panel ========== */
.left-panel {
    flex: 1;
    padding: clamp(24px, 4vw, 40px);
    color: white;
    background: linear-gradient(160deg, var(--brand) 0%, #9b3a77 100%);
}

.left-panel h1 {
    font-size: clamp(28px, 3.2vw, 36px);
    line-height: 1.25;
    margin-bottom: clamp(20px, 4vw, 50px);
    margin-top: 0;
    /* avoid negative offsets for better responsiveness */
}

.left-panel .highlight {
    color: var(--color-pink);
}

.contact-info {
    font-size: clamp(16px, 1.8vw, 18px);
    line-height: 1.7;
}

.contact-link {
    text-decoration: none;
    color: white;
    font-size: clamp(16px, 1.8vw, 18px);
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--color-pink);
}

.icon {
    color: var(--color-pink);
    margin-right: 12px;
    font-size: 20px;
    vertical-align: middle;
}

.lifepulse-logo {
    display: block;
    /* avoid inline baseline gaps */
    max-width: clamp(90px, 12vw, 120px);
    margin-top: clamp(12px, 4vh, 48px);
    /* control TOP spacing */
    margin-bottom: clamp(8px, 3vw, 24px);
    text-align: left;
}

/* ========== Right panel / form ========== */
.right-panel {
    flex: 1;
    background-color: #fefefe;
    padding: clamp(24px, 4vw, 40px);
    border-radius: 0;
    /* unified with container; gets rounded on small screens */
}

form label {
    display: block;
    margin-top: 20px;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--color-dark);
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.interest-tags label {
    cursor: pointer;
}

.interest-tags input[type="radio"] {
    display: none;
}

.tag {
    background: none;
    border: 1px solid #aeacac;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--color-dark);
    transition: 0.2s;
    display: inline-block;
    line-height: 1;
    /* tighter chip look */
}

input[type="radio"]:checked+.tag,
.tag:hover {
    background-color: var(--brand);
    color: white;
    border-color: var(--brand);
}

input,
textarea {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: none;
    border-bottom: 2px solid #ccc;
    background: transparent;
    transition: border-color 0.3s;
    font-family: comfortaa, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    box-sizing: border-box;
}

input:focus,
textarea:focus {
    border-color: #CB2588;
    outline: none;
}

textarea {
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    margin-top: 24px;
    background-color: var(--brand);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 14px;
    width: 100%;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: comfortaa, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
    touch-action: manipulation;
}

.submit-btn:hover {
    background-color: var(--color-dark-primary);
}

/* ========== Responsive breakpoints ========== */

/* Medium: tighten spacing, ensure equal columns */
@media (max-width: 1024px) {
    .contact-container {
        max-width: 92vw;
    }
}

/* Tablet: add gap, soften radii, scale type */
@media (max-width: 900px) {
    .contact-wrapper {
        min-height: unset;
    }

    .contact-container {
        flex-direction: column;
        /* stack panels */
        gap: 16px;
        /* space between stacked cards */
        border-radius: var(--radius-lg);
        overflow: visible;
        /* allow each card to show its own radius */
    }

    .left-panel,
    .right-panel {
        border-radius: var(--radius-lg);
    }

    .right-panel {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    }
}

/* Phone: full-width, bigger tap targets, smaller gutters */
@media (max-width: 600px) {

    .left-panel,
    .right-panel {
        padding: 20px;
    }

    .left-panel h1 {
        font-size: clamp(24px, 6vw, 30px);
    }

    .contact-info,
    .contact-link {
        font-size: 16px;
    }

    .tag {
        padding: 10px 14px;
        font-size: 14px;
    }

    .icon {
        margin-right: 8px;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .tag {
        padding: 10px 12px;
    }

    .submit-btn {
        padding: 12px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto;
    }
}