.connect-page { background-color: var(--stormy-teal, #2C6671); }

.animation-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    opacity: 0.4;
}

.circle-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.animated-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-color), #E8D0D0);
    opacity: 0.3;
    animation: float 20s infinite;
}

@keyframes float {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(30px, -50px) scale(1.1); }
    66%  { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.connect-page .community-hero {
    padding: 14rem 2rem 6rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.connect-page .community-hero h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    color: var(--warm-white, #F5F2EC);
}

.connect-page .community-hero .hero-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    color: rgba(245, 242, 236, 0.78);
}

.connect-forms {
    padding: 2rem 2rem 8rem;
    position: relative;
    z-index: 2;
}

.connect-forms .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Warm-white card floating on teal */
.connect-page .form-container {
    background: var(--warm-white, #F5F2EC);
    border-radius: 24px;
    padding: 1.75rem 3rem 3rem;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.22);
}

.connect-page .form-header {
    margin-bottom: 2.5rem;
}

.connect-page .form-header h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--stormy-teal, #2C6671);
    text-transform: none;
    letter-spacing: 0;
}

.connect-page .form-header p {
    font-family: 'Open Sans', sans-serif;
    color: rgba(26, 26, 46, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.connect-page .form-header a {
    color: var(--stormy-teal, #2C6671);
}

/* ── Native contact form ── */

.contact-form {
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-field {
    margin-bottom: 1.2rem;
}

.contact-form label {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(26, 26, 46, 0.55);
    margin-bottom: 0.45rem;
}

.contact-form label .required {
    color: var(--rust, #C3703D);
    font-weight: 400;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(44, 102, 113, 0.2);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem; /* 16px minimum prevents iOS Safari auto-zoom on focus */
    color: #1A1A2E;
    background: var(--warm-white-light, #FAF8F4);
    outline: none;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--stormy-teal, #2C6671);
    box-shadow: 0 0 0 3px rgba(44, 102, 113, 0.12);
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.form-submit {
    margin-top: 0.5rem;
}

.cf-submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--rust, #C3703D);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cf-submit-btn:hover {
    background: #ad6235;
}

.cf-submit-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.form-success {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.05rem;
    color: var(--stormy-teal, #2C6671);
    margin-top: 1.5rem;
    line-height: 1.6;
}

.form-error {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #c0392b;
    margin-top: 1rem;
    line-height: 1.6;
}

.form-error a { color: #c0392b; }

.connect-page footer { background-color: var(--stormy-teal, #2C6671); }

@media (max-width: 600px) {
    .connect-page .form-container { padding: 2rem 1.5rem; }
    .connect-page .community-hero { padding: 10rem 1.5rem 4rem; }
}
