:root {
    --primary-color: #fff7e6;
    --accent-color: #ffdb4d;
    --accent-blue: #7fccde;
    --accent-blue-light: #a5e9f7;
    --text-color: #383838;
    --muted-color: #7a7a7a;
    --shadow-blue: rgba(127, 204, 222, 0.25);
    --card-shadow: 0 25px 60px rgba(63, 63, 63, 0.12);
}

body.public-contact-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    background: linear-gradient(120deg, rgba(255, 219, 77, 0.25), rgba(127, 204, 222, 0.2)), var(--primary-color);
    color: var(--text-color);
}

.public-contact-wrapper {
    width: 100%;
    min-height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 4rem);
}

.contact-card {
    width: min(920px, 100%);
    background: #fff;
    border-radius: 32px;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(127, 204, 222, 0.25);
}

.contact-badge {
    display: inline-flex;
    padding: 0.35rem 1.2rem;
    background: rgba(127, 204, 222, 0.15);
    color: #046a82;
    font-weight: 600;
    border-radius: 999px;
    font-size: 0.9rem;
    margin: 0;
}

.contact-card h1 {
    margin: 1rem 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.contact-intro {
    margin: 0 0 1.5rem;
    color: var(--muted-color);
    line-height: 1.6;
}

.status-message {
    border-radius: 18px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.status-message.success {
    background: rgba(76, 175, 80, 0.12);
    border-left: 6px solid #4caf50;
    color: #1b5e20;
}

.status-message.error {
    background: rgba(255, 68, 68, 0.12);
    border-left: 6px solid #ff5252;
    color: #b71c1c;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    border: 1px solid rgba(127, 204, 222, 0.5);
    border-radius: 18px;
    padding: 0.95rem 1.2rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(127, 204, 222, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.field-hint {
    font-size: 0.85rem;
    color: var(--muted-color);
}

.contact-submit {
    border: none;
    border-radius: 999px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    color: #2f2f2f;
    background: linear-gradient(120deg, var(--accent-color), var(--accent-blue));
    box-shadow: 0 15px 30px rgba(255, 219, 77, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(255, 219, 77, 0.4);
}

.contact-footer-note {
    margin-top: 1.5rem;
    color: var(--muted-color);
    font-size: 0.95rem;
}

.contact-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
}

.contact-back-link:hover {
    color: var(--text-color);
}

.captcha-group .captcha-input {
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.captcha-container {
    position: relative;
    margin-bottom: 0.8rem;
}

.captcha-image {
    display: block;
    width: clamp(220px, 70vw, 320px);
    max-width: 100%;
    height: auto;
    border: 2px solid rgba(127, 204, 222, 0.6);
    border-radius: 16px;
    cursor: pointer;
    background: #fff;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.captcha-image.is-loading {
    opacity: 0.55;
}

.captcha-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    margin-top: 0.4rem;
    align-items: center;
}

.captcha-refresh-button {
    border: none;
    border-radius: 999px;
    background: var(--accent-blue);
    color: #04303c;
    font-weight: 600;
    padding: 0.45rem 1.4rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.captcha-refresh-button:hover {
    background: var(--accent-blue-light);
    transform: translateY(-1px);
}

.captcha-help {
    display: block;
    font-size: 0.85rem;
    color: var(--muted-color);
}

.captcha-actions .captcha-help {
    flex-basis: 100%;
    margin: 0;
}

.captcha-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 9999;
}

.captcha-modal {
    width: min(92vw, 560px);
    text-align: center;
}

.captcha-fullscreen {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 1.2rem;
    border-width: 0.3rem;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
}

.captcha-modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.captcha-close {
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1.6rem;
    font-weight: 600;
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.captcha-close:hover {
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .public-contact-wrapper {
        padding: 1rem;
    }

    .contact-card {
        border-radius: 20px;
        padding: 1.5rem;
    }

    .captcha-image {
        width: 100%;
    }

    .contact-submit {
        width: 100%;
    }
}
