/* SailWP Co-pilot — built-in contact-form modal.
   Triggered by buttons matching contact/booking patterns on designed pages. */

.swcp-cf-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 30, 0.62);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}
.swcp-cf-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}
.swcp-cf-modal {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    color: #1a1a2e;
    border-radius: 14px;
    padding: 28px 28px 24px;
    box-shadow: 0 24px 60px rgba(11, 17, 30, 0.28);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transform: translateY(8px);
    transition: transform 0.18s ease;
}
.swcp-cf-backdrop.is-open .swcp-cf-modal {
    transform: translateY(0);
}
.swcp-cf-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(26, 26, 46, 0.55);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.swcp-cf-close:hover { background: rgba(26, 26, 46, 0.08); color: #1a1a2e; }
.swcp-cf-modal { position: relative; }

.swcp-cf-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
    padding-right: 36px;
}
.swcp-cf-field {
    display: block;
    margin: 0 0 14px;
}
.swcp-cf-field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(26, 26, 46, 0.7);
    margin: 0 0 6px;
}
.swcp-cf-input,
.swcp-cf-textarea {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a2e;
    background: #ffffff;
    border: 1px solid rgba(26, 26, 46, 0.18);
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}
.swcp-cf-input:focus,
.swcp-cf-textarea:focus {
    outline: none;
    border-color: #e8845c;
    box-shadow: 0 0 0 3px rgba(232, 132, 92, 0.18);
}
.swcp-cf-textarea {
    min-height: 88px;
    resize: vertical;
    line-height: 1.5;
}
/* Honeypot — hide everywhere, even from screen readers (it's not for humans). */
.swcp-cf-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: -10000px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.swcp-cf-submit {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-top: 6px;
    background: #e8845c;
    color: #ffffff;
    border: 1px solid #e8845c;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.08s ease, border-color 0.15s ease;
}
.swcp-cf-submit:hover { background: #d4673c; border-color: #d4673c; }
.swcp-cf-submit:active { transform: translateY(1px); }
.swcp-cf-submit:disabled { opacity: 0.7; cursor: progress; transform: none; }

.swcp-cf-status {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
    display: none;
}
.swcp-cf-status.is-ok {
    background: rgba(31, 111, 62, 0.1);
    color: #1f6f3e;
    display: block;
}
.swcp-cf-status.is-error {
    background: rgba(196, 89, 58, 0.1);
    color: #b04a2b;
    display: block;
}

@media (max-width: 480px) {
    .swcp-cf-modal { padding: 22px 20px 20px; border-radius: 12px; }
    .swcp-cf-title { font-size: 18px; }
}
