@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&display=swap');

.clacton-contact-wrap,
.clacton-contact-wrap * {
    box-sizing: border-box;
}

.clacton-contact-wrap {
    width: 100%;
    max-width: 980px;
    margin: 28px auto;
    padding: 0 18px;
    font-family: "Montserrat", Arial, sans-serif !important;
}

.clacton-contact-form {
    padding: 34px;
    background: #ffffff;
    border: 1px solid #dce2e8;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(15, 35, 65, 0.09);
}

.clacton-contact-heading h2 {
    margin: 0 0 8px !important;
    color: #173b64 !important;
    font-family: "Montserrat", Arial, sans-serif !important;
    font-size: 30px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-transform: none !important;
}

.clacton-contact-heading p {
    margin: 0 0 25px !important;
    color: #596572 !important;
    font-family: "Montserrat", Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.clacton-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.clacton-contact-form label {
    display: block;
    margin-bottom: 18px;
}

.clacton-contact-form label > span {
    display: block;
    margin-bottom: 7px;
    color: #173b64;
    font-size: 13px;
    font-weight: 800;
}

.clacton-contact-form input,
.clacton-contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #b9c6d3;
    border-radius: 7px;
    background: #ffffff;
    color: #263442;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    outline: none;
}

.clacton-contact-form input:focus,
.clacton-contact-form textarea:focus {
    border-color: #173b64;
    box-shadow: 0 0 0 3px rgba(23, 59, 100, 0.12);
}

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

.clacton-contact-form button {
    min-height: 49px;
    padding: 12px 22px;
    border: 0;
    border-radius: 7px;
    background: #cf2434;
    color: #ffffff;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.clacton-contact-form button:hover {
    background: #aa1d2a;
}

.clacton-contact-form button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.clacton-contact-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.clacton-contact-status {
    margin-top: 16px;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.clacton-contact-status.is-success,
.clacton-contact-status.is-error {
    padding: 13px 15px;
    border-radius: 7px;
}

.clacton-contact-status.is-success {
    background: #eaf7ee;
    color: #176b35;
}

.clacton-contact-status.is-error {
    background: #fff0f1;
    color: #a41e2b;
}

@media (max-width: 680px) {
    .clacton-contact-wrap {
        padding: 0 12px;
    }

    .clacton-contact-form {
        padding: 24px 19px;
    }

    .clacton-contact-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .clacton-contact-form button {
        width: 100%;
    }
}



.clacton-contact-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: nowrap;
    margin-top: 18px;
}

.clacton-contact-actions button {
    flex: 0 0 auto;
    margin: 0;
}

.clacton-contact-actions .clacton-turnstile-wrap {
    position: relative;
    flex: 0 0 252px;
    width: 252px;
    height: 55px;
    margin: 0 0 0 auto;
    overflow: hidden;
    border-radius: 7px;
    background: #2b2b2b;
}

.clacton-contact-actions .cf-turnstile {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 65px;
    transform: scale(0.84);
    transform-origin: top right;
}

.clacton-contact-actions .cf-turnstile iframe {
    border-radius: 8px !important;
}

/* Keep Cloudflare Turnstile compact even when the theme applies responsive iframe rules. */
.clacton-contact-actions .clacton-turnstile-wrap {
    min-height: 55px !important;
    max-height: 55px !important;
    overflow: hidden !important;
}

.clacton-contact-actions .cf-turnstile,
.clacton-contact-actions .cf-turnstile > div,
.clacton-contact-actions .cf-turnstile iframe {
    min-height: 65px !important;
    max-height: 65px !important;
    aspect-ratio: auto !important;
}

.clacton-contact-actions .cf-turnstile iframe {
    width: 300px !important;
    height: 65px !important;
    display: block !important;
}

@media (max-width: 620px) {
    .clacton-contact-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .clacton-contact-actions button {
        width: 100%;
        order: 1;
    }

    .clacton-contact-actions .clacton-turnstile-wrap {
        order: 2;
        flex: 0 0 65px;
        width: 300px;
        height: 65px !important;
        min-height: 65px !important;
        max-height: 65px !important;
        margin: 0 auto;
        max-width: 100%;
        border-radius: 7px;
    }

    .clacton-contact-actions .cf-turnstile {
        position: absolute;
        top: 0;
        left: 50%;
        right: auto;
        width: 300px;
        height: 65px;
        transform: translateX(-50%);
        transform-origin: top center;
    }
}

/* Site-wide floating contact menu */
.clacton-floating-contact,
.clacton-floating-contact * {
    box-sizing: border-box;
}

.clacton-floating-contact {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 11px;
    font-family: "Montserrat", Arial, sans-serif;
}

.clacton-floating-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    padding: 12px 20px;
    border: 0;
    border-radius: 9px;
    background: #cf2434;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 35, 65, 0.22);
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.clacton-floating-contact-button:hover,
.clacton-floating-contact-button:focus-visible {
    background: #ad1d2a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 11px 28px rgba(15, 35, 65, 0.27);
}

.clacton-floating-contact-button:focus-visible {
    outline: 3px solid rgba(23, 59, 100, 0.28);
    outline-offset: 3px;
}

.clacton-floating-contact-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
}

.clacton-floating-contact-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.clacton-floating-contact-menu {
    width: min(330px, calc(100vw - 30px));
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #dce2e8;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(15, 35, 65, 0.22);
}

.clacton-floating-contact-menu[hidden] {
    display: none !important;
}

.clacton-floating-contact-title {
    padding: 15px 18px;
    background: #173b64;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
}

.clacton-floating-contact-menu a {
    display: block;
    padding: 14px 18px;
    border-top: 1px solid #e5e9ed;
    color: #173b64 !important;
    background: #ffffff;
    text-decoration: none !important;
    transition: background 0.16s ease, color 0.16s ease;
}

.clacton-floating-contact-menu a:first-of-type {
    border-top: 0;
}

.clacton-floating-contact-menu a:hover,
.clacton-floating-contact-menu a:focus-visible {
    background: #f4f7fa;
    color: #cf2434 !important;
}

.clacton-floating-contact-menu a:focus-visible {
    outline: 3px solid rgba(23, 59, 100, 0.22);
    outline-offset: -3px;
}

.clacton-floating-contact-menu a.clacton-floating-contact-item-donate {
    background: #cf2434;
    color: #ffffff !important;
}

.clacton-floating-contact-menu a.clacton-floating-contact-item-donate small {
    color: rgba(255, 255, 255, 0.86);
}

.clacton-floating-contact-menu a.clacton-floating-contact-item-donate:hover,
.clacton-floating-contact-menu a.clacton-floating-contact-item-donate:focus-visible {
    background: #ad1d2a;
    color: #ffffff !important;
}

.clacton-floating-contact-menu a span {
    display: block;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
}

.clacton-floating-contact-menu a small {
    display: block;
    margin-top: 3px;
    color: #66717e;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

@media (max-width: 620px) {
    .clacton-floating-contact {
        right: 12px;
        bottom: 12px;
    }

    .clacton-floating-contact-button {
        min-height: 50px;
        padding: 11px 17px;
    }

    .clacton-floating-contact-menu {
        width: min(330px, calc(100vw - 24px));
    }
}

.clacton-contact-form select {
    width: 100%;
    min-height: 49px;
    padding: 12px 14px;
    border: 1px solid #b9c6d3;
    border-radius: 7px;
    background: #ffffff;
    color: #263442;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    outline: none;
}

.clacton-contact-form select:focus {
    border-color: #173b64;
    box-shadow: 0 0 0 3px rgba(23, 59, 100, 0.12);
}

.clacton-contact-form .clacton-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0;
    color: #43515f;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.clacton-contact-form .clacton-check-label input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
}

.clacton-contact-form .clacton-check-label > span {
    margin: 0;
    color: #43515f;
    font-size: 13px;
    font-weight: 600;
}
