/* ============================================================
   Connect Me Forms v1.1.0 — Public Form Styles
   Developer: Shaitan Singh Rajpurohit | marwartimes.com
   ============================================================ */

/* Wrapper */
.cmf-wrapper {
    max-width: 620px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;            /* clips honeypot — fixes the empty box */
}

/* ── Honeypot: completely invisible ── */
.cmf-hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ── Response Box: hidden by default, NO visible space ── */
.cmf-response {
    display: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}
.cmf-response.cmf-error {
    display: block;
    background: #fff5f5;
    color: #c53030;
    border: 1.5px solid #feb2b2;
    padding: 13px 16px;
}
.cmf-response.cmf-success {
    display: block;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid #86efac;
    padding: 0;
}

/* ── Form Card ── */
.cmf-form {
    background: #ffffff;
    border: 1px solid #ddeef8;
    border-radius: 14px;
    padding: 28px 28px 22px;
    box-shadow: 0 4px 24px rgba(41,171,226,0.07);
}

.cmf-row { display: grid; gap: 14px; margin-bottom: 14px; }
.cmf-row-2 { grid-template-columns: 1fr 1fr; }
.cmf-row-1 { grid-template-columns: 1fr; }
.cmf-field { display: flex; flex-direction: column; margin-bottom: 14px; }
.cmf-field:last-child { margin-bottom: 0; }

/* ── Labels ── */
.cmf-field label {
    display: block;
    font-size: 12.5px; font-weight: 700; color: #1e3448;
    margin-bottom: 6px; letter-spacing: .15px;
}
.cmf-req { color: #29ABE2; margin-left: 2px; }

/* ── Inputs ── */
.cmf-field input[type="text"],
.cmf-field input[type="email"],
.cmf-field input[type="tel"],
.cmf-field input[type="number"],
.cmf-field input[type="date"],
.cmf-field textarea,
.cmf-field select {
    width: 100%; box-sizing: border-box;
    padding: 10px 14px;
    border: 1.5px solid #d4eaf5; border-radius: 8px;
    font-size: 13.5px; font-family: inherit; color: #1e3448;
    background: #f7fbff;
    transition: border-color .2s, box-shadow .2s, background .15s;
    outline: none; -webkit-appearance: none; appearance: none;
    line-height: 1.5;
}
.cmf-field input:focus,
.cmf-field textarea:focus,
.cmf-field select:focus {
    border-color: #29ABE2; background: #fff;
    box-shadow: 0 0 0 3px rgba(41,171,226,0.12);
}
.cmf-field input::placeholder,
.cmf-field textarea::placeholder { color: #b0c4d4; font-size: 13px; }
.cmf-field textarea { resize: vertical; min-height: 120px; }
.cmf-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2329ABE2' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; cursor: pointer;
}

/* ── Radio & Checkbox ── */
.cmf-radio-group,
.cmf-checkbox-group { display: flex; flex-direction: column; gap: 9px; padding: 4px 0; }
.cmf-radio-label,
.cmf-checkbox-label {
    display: flex; align-items: center; gap: 9px;
    font-size: 13px; color: #1e3448; cursor: pointer; font-weight: 500;
}
.cmf-radio-label input,
.cmf-checkbox-label input {
    width: 16px !important; height: 16px !important; min-width: 16px;
    padding: 0 !important; margin: 0 !important; accent-color: #29ABE2;
    cursor: pointer; box-shadow: none !important; border: none !important; background: transparent !important;
}

/* ── Submit Row ── */
.cmf-submit-row {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin-top: 6px; padding-top: 18px; border-top: 1px solid #f0f5f9;
}
.cmf-secure-note { font-size: 11.5px; color: #9ab4c6; }

/* ── Submit Button ── */
.cmf-submit-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #29ABE2 0%, #1a90c5 100%);
    color: #fff; border: none; padding: 12px 30px; border-radius: 9px;
    font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
    letter-spacing: .3px; transition: all .2s;
    box-shadow: 0 4px 14px rgba(41,171,226,0.3);
}
.cmf-submit-btn:hover {
    background: linear-gradient(135deg, #1a90c5 0%, #0d7aad 100%);
    box-shadow: 0 6px 20px rgba(41,171,226,0.38); transform: translateY(-1px);
}
.cmf-submit-btn:active  { transform: translateY(0); box-shadow: 0 2px 8px rgba(41,171,226,0.2); }
.cmf-submit-btn:disabled { opacity: .65; cursor: wait; transform: none; box-shadow: none; }
.cmf-btn-icon { font-style: normal; font-size: 15px; }

/* ── Success Card ── */
.cmf-success-card { padding: 32px 28px; text-align: center; }
.cmf-success-icon {
    width: 66px; height: 66px; background: #22c55e; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; margin: 0 auto 18px;
    box-shadow: 0 6px 20px rgba(34,197,94,0.35);
    animation: cmfPop .45s cubic-bezier(.175,.885,.32,1.275) both;
}
@keyframes cmfPop {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.cmf-success-title { font-size: 21px; font-weight: 800; color: #14532d; margin: 0 0 10px; }
.cmf-success-msg   { font-size: 14px; color: #166534; line-height: 1.65; margin: 0 0 16px; }
.cmf-success-msg strong { color: #14532d; }
.cmf-success-divider {
    display: flex; align-items: center; justify-content: center;
    gap: 14px; flex-wrap: wrap;
    padding-top: 16px; border-top: 1px solid rgba(34,197,94,0.2);
    font-size: 12px; color: #6b8ea8;
}
.cmf-success-divider a { color: #29ABE2; text-decoration: none; font-weight: 600; }
.cmf-success-divider a:hover { text-decoration: underline; }

/* ── Accessibility ── */
.screen-reader-text {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Responsive ── */
@media (max-width: 540px) {
    .cmf-form { padding: 20px 16px 18px; border-radius: 10px; }
    .cmf-row-2 { grid-template-columns: 1fr; }
    .cmf-submit-btn { width: 100%; justify-content: center; }
    .cmf-submit-row { flex-direction: column; align-items: flex-start; }
    .cmf-success-card { padding: 24px 18px; }
}
