/* ============================================================
   Yeap Mailer — Contact Form Frontend Styles  v1.0.9
   ============================================================ */

.yeap-cf-wrap {
    max-width: 1100px;
    margin: 0 auto 48px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
}

/* ── Customer Verification — hide protected content until verified ── */
.yeap-cf-locked .yeap-cf-protected-content {
    display: none !important;
}

/* ── Customer Verification ── */
.yeap-cf-verification {
    background: #f8f9fc;
    border: 1px solid #e8eaf0;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
}

.yeap-cf-verification-question {
    font-size: 18px;
    font-weight: 600;
    color: #13204A;
    margin-bottom: 24px;
}

.yeap-cf-verification-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.yeap-cf-verification-buttons button {
    min-width: 120px;
}

.yeap-cf-customer-number-wrap,
.yeap-cf-signup-wrap {
    margin-top: 24px;
}

.yeap-cf-customer-number-wrap .yeap-cf-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

.yeap-cf-customer-number-wrap .yeap-cf-input {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 16px;
    display: block;
}

.yeap-cf-customer-number-wrap .yeap-cf-btn,
.yeap-cf-signup-wrap .yeap-cf-btn {
    min-width: 120px;
}

.yeap-cf-signup-wrap p {
    margin-bottom: 16px;
    color: #5a6882;
}

/* ── Header ── */
.yeap-cf-header {
    text-align: center;
    margin-bottom: 36px;
}

.yeap-cf-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: #13204A;
    margin: 0 0 10px;
    line-height: 1.2;
}

.yeap-cf-subtitle {
    font-size: 1.05rem;
    color: #5a6882;
    margin: 0;
    line-height: 1.65;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Column layouts ── */
.yeap-cf-columns {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.yeap-cf-columns--form_only .yeap-cf-form-col {
    flex: 1;
    max-width: 760px;
    margin: 0 auto;
}

.yeap-cf-columns--map_right {
    flex-direction: row;
}

.yeap-cf-columns--map_right .yeap-cf-form-col {
    flex: 1 1 var(--yeap-cf-form-col, 60%);
    min-width: 0;
}

.yeap-cf-columns--map_right .yeap-cf-side-col {
    flex: 1 1 var(--yeap-cf-side-col, 40%);
    min-width: 260px;
}

.yeap-cf-columns--map_bottom {
    flex-direction: column;
}

.yeap-cf-columns--map_bottom .yeap-cf-form-col,
.yeap-cf-columns--map_bottom .yeap-cf-side-col {
    width: 100%;
}

@media (max-width: 860px) {
    .yeap-cf-columns--map_right {
        flex-direction: column;
    }
    .yeap-cf-columns--map_right .yeap-cf-side-col {
        flex: none;
        width: 100%;
        min-width: 0;
    }
}

/* ── Info card: own column (left / right) ── */
.yeap-cf-info-col {
    flex: 0 0 var(--yeap-cf-side-col, 36%);
    min-width: 240px;
}

/* ── Info card: full-width band (top / bottom) ── */
.yeap-cf-info-band {
    width: 100%;
}

.yeap-cf-info-band--top {
    margin-bottom: 28px;
}

.yeap-cf-info-band--bottom {
    margin-top: 28px;
}

/* When info card is in band mode, display entries horizontally */
.yeap-cf-info-band .yeap-cf-info-card {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 22px 28px;
}

.yeap-cf-info-band .yeap-cf-info-row {
    flex: 1 1 200px;
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.12);
    padding: 12px 24px 12px 0;
    margin-right: 24px;
}

.yeap-cf-info-band .yeap-cf-info-row:last-child {
    border-right: none;
    margin-right: 0;
}

@media (max-width: 680px) {
    .yeap-cf-info-col {
        flex: none;
        width: 100%;
        min-width: 0;
    }
    .yeap-cf-info-band .yeap-cf-info-card {
        flex-direction: column;
        padding: 20px 20px;
    }
    .yeap-cf-info-band .yeap-cf-info-row {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        margin-right: 0;
        padding: 12px 0;
    }
    .yeap-cf-info-band .yeap-cf-info-row:last-child {
        border-bottom: none;
    }
}

/* ── Contact info card ── */
.yeap-cf-info-card {
    background: linear-gradient(135deg, #13204A 0%, #1e3a8a 100%);
    border-radius: 14px;
    padding: 30px 28px;
    margin-bottom: 20px;
    color: #fff;
}

.yeap-cf-info-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.yeap-cf-info-row:last-child {
    border-bottom: none;
}

.yeap-cf-info-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.yeap-cf-info-icon svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

.yeap-cf-info-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.75) !important;
    margin-bottom: 3px;
}

.yeap-cf-info-value {
    display: block;
    font-size: 0.97rem;
    color: #fff !important;
    text-decoration: none;
    line-height: 1.5;
    word-break: break-word;
}

a.yeap-cf-info-value:hover {
    text-decoration: underline;
    color: #a5b4fc;
}

/* ── Google Maps embed ── */
.yeap-cf-map-wrap {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(19,32,74,0.13);
    line-height: 0;
}

.yeap-cf-map-wrap iframe {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 14px;
}

/* ── Card body ── */
.yeap-cf-body {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 40px rgba(19, 32, 74, 0.10);
    padding: 40px 44px;
}

@media (max-width: 600px) {
    .yeap-cf-body {
        padding: 28px 20px;
    }
}

/* ── Rows ── */
.yeap-cf-row {
    margin-bottom: 22px;
}

.yeap-cf-row--half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .yeap-cf-row--half {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }
    .yeap-cf-row--half .yeap-cf-field {
        margin-bottom: 22px;
    }
}

.yeap-cf-row--submit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 0;
}

/* ── Fields ── */
.yeap-cf-field {
    display: flex;
    flex-direction: column;
}

.yeap-cf-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #13204A;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 7px;
}

.yeap-cf-required {
    color: #e53935;
    margin-left: 2px;
}

.yeap-cf-input,
.yeap-cf-select,
.yeap-cf-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 0.97rem;
    color: #1a1a2e;
    background: #f8f9fc;
    border: 1.5px solid #dce1ee;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
    appearance: none;
}

.yeap-cf-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6882' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.yeap-cf-input:focus,
.yeap-cf-select:focus,
.yeap-cf-textarea:focus {
    border-color: #1e3a8a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.10);
}

.yeap-cf-input.yeap-cf-error,
.yeap-cf-select.yeap-cf-error,
.yeap-cf-textarea.yeap-cf-error {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.10);
}

.yeap-cf-textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.65;
}

.yeap-cf-address {
    min-height: 68px;
}

/* Checkbox */
.yeap-cf-checkbox-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.97rem;
    color: #1a1a2e;
    line-height: 1.5;
}

.yeap-cf-checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #1e3a8a;
    cursor: pointer;
}

/* ── Submit button ── */
.yeap-cf-wrap .yeap-cf-btn,
.yeap-cf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #13204A, #1e3a8a);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(19, 32, 74, 0.25);
}

.yeap-cf-btn:hover {
    opacity: 0.91;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(19, 32, 74, 0.32);
}

.yeap-cf-btn:active {
    transform: translateY(0);
}

.yeap-cf-btn:disabled,
.yeap-cf-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.yeap-cf-btn-icon {
    font-size: 1.05rem;
    transition: transform 0.2s;
}

.yeap-cf-btn:hover .yeap-cf-btn-icon {
    transform: translateX(3px);
}

/* Spinner inside button */
.yeap-cf-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: yeap-cf-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes yeap-cf-spin {
    to { transform: rotate(360deg); }
}

/* ── Notice (success / error) ── */
.yeap-cf-notice {
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.55;
    font-weight: 500;
    box-sizing: border-box;
}

.yeap-cf-notice--success {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #15803d;
}

.yeap-cf-notice--error {
    background: #fff5f5;
    border: 1.5px solid #fca5a5;
    color: #b91c1c;
}

/* ── Success state — full card replaced ── */
.yeap-cf-success-wrap {
    text-align: center;
    padding: 60px 20px;
    animation: yeap-cf-fadein 0.5s ease;
}

@keyframes yeap-cf-fadein {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.yeap-cf-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #13204A, #1e3a8a);
    margin-bottom: 22px;
}

.yeap-cf-check-icon svg {
    width: 38px;
    height: 38px;
    stroke: #ffffff;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.yeap-cf-success-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #13204A;
    margin: 0 0 10px;
}

.yeap-cf-success-msg {
    font-size: 1rem;
    color: #5a6882;
    margin: 0;
    line-height: 1.7;
}
