/* ============================================================
   Request Demo — eCheckPlan
   Card layout matched to the application pages; the CF7 form is
   styled to look like the native designed forms.
   ============================================================ */

:root {
    --rd-red: #ff3b3b;
    --rd-red-dark: #e92e2e;
    --rd-ink: #161b28;
    --rd-mute: #6b7280;
    --rd-line: #e7e9ef;
    --rd-field: #d9dde6;
    --rd-soft: #f5f6f8;
}

.rd-section {
    background: linear-gradient(180deg, #fdfaf7 0%, #ffffff 55%);
    padding: 64px 0 80px;
}

/* Hero ------------------------------------------------------ */
.rd-head { max-width: 820px; margin: 0 auto 44px; }
.rd-head-below { margin: 56px auto 0; }
.rd-eyebrow {
    display: inline-block;
    color: #ff382e;
    font-family: 'Oswald', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.rd-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 800;
    color: var(--rd-ink);
    font-size: clamp(2rem, 4.2vw, 3rem);
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0;
}
.rd-divider {
    width: 62px; height: 4px; border-radius: 10px;
    background: var(--rd-red);
    position: relative;
    margin: 16px auto 18px;
}
.rd-divider::after {
    content: ""; position: absolute; top: 50%; right: -6px;
    transform: translateY(-50%);
    width: 11px; height: 11px; border-radius: 50%; background: var(--rd-ink);
}
.rd-sub { font-family: 'Inter', sans-serif; color: var(--rd-mute); font-size: 1.05rem; line-height: 1.65; margin: 0 auto; max-width: 760px; }
.rd-trustline {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 18px auto 0;
    background: #fff4f4;
    border: 1px solid #ffd6d6;
    border-radius: 30px;
    padding: 9px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #5d2727;
    line-height: 1.4;
}
.rd-trustline i { color: #ff382e; font-size: 1.05rem; }

/* ============ FORM (left) ============ */
.rd-form-card {
    background: #fff;
    border: 1px solid var(--rd-line);
    border-radius: 16px;
    padding: 34px 34px 32px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}
.rd-form-heading {
    font-family: 'Oswald', sans-serif;
    font-weight: 800;
    color: var(--rd-ink);
    font-size: 1.45rem;
    margin: 0 0 4px;
}
.rd-form-sub { font-family: 'Inter', sans-serif; color: var(--rd-mute); font-size: 0.95rem; margin: 0 0 12px; }
.rd-form-placeholder {
    background: var(--rd-soft); border: 2px dashed var(--rd-field);
    border-radius: 12px; padding: 30px; text-align: center; color: var(--rd-mute);
}

/* ---- Contact Form 7 styling (two-column, matches the native designed forms) ----
   The request-demo CF7 form wraps each field in <div class="form-group"> inside
   #contactForm, so we grid those into two columns. */
/* The CF7 <form> stays block & full-width; only #contactForm is the 2-col grid. */
.rd-form-area .wpcf7-form { display: block; width: 100%; }
.rd-form-area .wpcf7-form > .hidden-fields-container,
.rd-form-area .wpcf7-form > fieldset.hidden-fields-container { display: none; }
.rd-form-area #contactForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    align-items: start;
    width: 100%;
}
/* Each field group = one column */
.rd-form-area #contactForm > .form-group { margin: 0; min-width: 0; }
/* Field group inner: CF7 autop wraps label + field in <p> — flatten spacing */
.rd-form-area #contactForm .form-group > p { margin: 0; }
.rd-form-area #contactForm .form-group > p br { display: none; }
/* Full-width rows: message, services checkboxes, submit, status, helpers */
.rd-form-area #contactForm > .form-group-full,
.rd-form-area #contactForm > .form-group:has(textarea),
.rd-form-area #contactForm > .form-group:has(.wpcf7-checkbox),
.rd-form-area #contactForm > .form-group:has(.wpcf7-acceptance),
.rd-form-area #contactForm > p,
.rd-form-area #contactForm > .wpcf7-submit,
.rd-form-area #contactForm > input[type="submit"],
.rd-form-area #contactForm > .btn,
.rd-form-area #contactForm > .wpcf7-spinner,
.rd-form-area #contactForm > .wpcf7-response-output,
.rd-form-area #contactForm > #msgSubmit,
.rd-form-area #contactForm > .clearfix,
.rd-form-area .wpcf7-form > .wpcf7-response-output {
    grid-column: 1 / -1;
}
/* Section headings, if any, span full width */
.rd-form-area .wpcf7-form h1,
.rd-form-area .wpcf7-form h2,
.rd-form-area .wpcf7-form h3,
.rd-form-area .wpcf7-form h4,
.rd-form-area .wpcf7-form h5,
.rd-form-area .wpcf7-form h6 {
    grid-column: 1 / -1;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--rd-ink);
    font-size: 1.05rem;
    letter-spacing: 0.2px;
    margin: 8px 0 2px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rd-line);
}

.rd-form-area label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3a4250;
    margin-bottom: 6px;
    display: block;
    line-height: 1.4;
}
.rd-form-area input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.rd-form-area select,
.rd-form-area textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--rd-field);
    background: #fff;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--rd-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rd-form-area textarea { min-height: 120px; resize: vertical; }
.rd-form-area input::placeholder, .rd-form-area textarea::placeholder { color: #9aa0ab; }
.rd-form-area select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none; cursor: pointer;
    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 fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px;
}
.rd-form-area input:focus, .rd-form-area select:focus, .rd-form-area textarea:focus {
    outline: none; border-color: var(--rd-red); box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.12);
}

/* CF7 checkboxes / radios */
.rd-form-area .wpcf7-checkbox,
.rd-form-area .wpcf7-radio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
    margin-top: 6px;
}
.rd-form-area .wpcf7-radio { grid-template-columns: repeat(auto-fit, minmax(120px, max-content)); }
.rd-form-area .wpcf7-list-item { margin: 0; }
.rd-form-area .wpcf7-list-item label {
    display: flex; align-items: center; gap: 9px; margin: 0;
    font-weight: 500; color: var(--rd-ink); cursor: pointer;
    background: var(--rd-soft); border: 1px solid var(--rd-line);
    border-radius: 10px; padding: 11px 14px;
    transition: border-color 0.18s ease, background 0.18s ease;
}
.rd-form-area .wpcf7-radio .wpcf7-list-item label { background: transparent; border: none; padding: 0; }
.rd-form-area .wpcf7-list-item label:hover { border-color: #ffc9c9; background: #fff6f6; }
.rd-form-area .wpcf7-radio .wpcf7-list-item label:hover { background: transparent; }
.rd-form-area input[type="checkbox"],
.rd-form-area input[type="radio"] { width: 17px; height: 17px; accent-color: var(--rd-red); flex-shrink: 0; }
.rd-form-area .wpcf7-list-item-label { margin: 0; }

/* CF7 submit */
.rd-form-area .wpcf7-submit {
    width: auto;
    background: var(--rd-red);
    color: #fff; border: none; border-radius: 10px;
    padding: 15px 38px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700; text-transform: uppercase;
    font-size: 0.95rem; letter-spacing: 0.7px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255, 59, 59, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    margin-top: 10px;
}
.rd-form-area .wpcf7-submit:hover {
    background: var(--rd-red-dark); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255, 59, 59, 0.32);
}
.rd-form-area .wpcf7-spinner { margin: 0 0 0 12px; }
.rd-form-area .wpcf7-not-valid-tip { font-size: 0.8rem; }
.rd-form-area .wpcf7-response-output { border-radius: 8px; margin: 8px 0 0; font-family: 'Inter', sans-serif; font-size: 0.9rem; }

/* ============ SIDEBAR (right) ============ */
.rd-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 24px; }
.rd-aside-card {
    background: var(--rd-soft);
    border: 1px solid var(--rd-line);
    border-radius: 16px;
    padding: 26px 24px;
}
/* Sidebar image — sits above the card heading.
   Deliberately paints NO background and is not clipped, so a transparent
   PNG/WebP reads straight onto the card surface with no white box. */
.rd-aside-img {
    background: transparent;
    margin: 0 0 18px;
    line-height: 0;
}
.rd-aside-img img {
    display: block;
    width: 100%;
    height: auto;
    background: transparent;
}
.rd-aside-heading {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--rd-ink);
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 0 0 16px;
}
.rd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.rd-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-family: 'Inter', sans-serif; font-size: 0.92rem; color: #374151; line-height: 1.45;
}
.rd-list li i { color: #ff382e; font-size: 1.05rem; flex-shrink: 0; margin-top: 1px; }

/* Security box */
.rd-security { background: linear-gradient(135deg, #fff6f6 0%, #fff 100%); border-color: #ffe0e0; }
.rd-security-row { display: flex; align-items: center; gap: 14px; }
.rd-security-row > i {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
    background: linear-gradient(135deg, var(--rd-red) 0%, #ff6b6b 100%);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
    box-shadow: 0 8px 18px rgba(255, 59, 59, 0.25);
}
.rd-security-row strong { display: block; font-family: 'Oswald', sans-serif; font-size: 1.05rem; color: var(--rd-ink); }
.rd-security-row span { font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--rd-mute); }
.rd-security-note { font-family: 'Inter', sans-serif; font-size: 0.88rem; color: var(--rd-mute); line-height: 1.55; margin: 16px 0 0; }

/* Trust badges */
.rd-trust { display: flex; flex-direction: column; gap: 12px; }
.rd-trust-item {
    display: flex; align-items: center; gap: 11px;
    font-family: 'Inter', sans-serif; font-size: 0.94rem; font-weight: 600; color: var(--rd-ink);
}
.rd-trust-item i { color: #00b67a; font-size: 1.1rem; flex-shrink: 0; }

/* ============ Responsive ============ */
@media (max-width: 991px) {
    .rd-section { padding: 46px 0 60px; }
    .rd-aside { position: static; }
}
@media (max-width: 575px) {
    .rd-form-card { padding: 24px 20px; }
    .rd-form-area #contactForm,
    .rd-form-area .wpcf7-form { grid-template-columns: 1fr; }
    .rd-form-area .wpcf7-checkbox { grid-template-columns: 1fr; }
    .rd-form-area .wpcf7-submit { width: 100%; }
}
