:root {
    --runera-primary: #3525cd;
    --runera-primary-2: #4f46e5;
    --runera-primary-soft: #e2dfff;
    --runera-bg: #f9f9f9;
    --runera-surface: #ffffff;
    --runera-surface-soft: #f3f3f3;
    --runera-border: #e5e7eb;
    --runera-text: #1a1c1c;
    --runera-muted: #6b7280;
    --runera-shadow: 0 24px 48px -20px rgba(19, 27, 46, 0.12);
    --runera-radius: 18px;
    --runera-radius-sm: 12px;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--runera-bg);
    color: var(--runera-text);
    font-family: "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Hide old shell if the page is inside iframe and you only want the form */
header,
nav,
footer,
.et-l--header,
.et-l--footer,
#main-header,
#top-header {
    display: none !important;
}

/* Main page wrapper */
body,
#page-container,
#main-content,
.et_pb_section,
.et_pb_row {
    background: var(--runera-bg) !important;
}

/* Constrain form area */
form,
.free-trial-form,
#free-trial-form,
.et_pb_module,
.main-content,
.content-area {
    max-width: 980px;
    margin: 0 auto;
}

/* Outer form card */
form {
    background: var(--runera-surface);
    border: 1px solid var(--runera-border);
    border-radius: 28px;
    box-shadow: var(--runera-shadow);
    padding: 32px;
}

/* Headings */
h1,
h2,
h3,
.et_pb_text h1,
.et_pb_text h2,
.et_pb_text h3 {
    color: var(--runera-text);
    font-family: "Inter", sans-serif;
    letter-spacing: -0.02em;
    margin-top: 0;
}

h1 {
    font-size: 40px;
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 12px;
}

h2 {
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 10px;
}

h3 {
    font-size: 18px;
    font-weight: 700;
}

p,
label,
li,
small,
span,
div {
    font-family: "Inter", sans-serif;
}

/* Muted helper text */
p,
small,
.form-description,
.description,
.et_pb_text p {
    color: var(--runera-muted);
    line-height: 1.55;
}

/* Form layout */
form .row,
form .form-row,
form .fields-row,
.et_pb_contact_form p {
    margin-bottom: 18px;
}

/* Labels */
label,
form label,
.et_pb_contact_form_label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--runera-text);
    margin-bottom: 8px;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--runera-border);
    border-radius: var(--runera-radius-sm);
    background: #fff;
    color: var(--runera-text);
    font-size: 15px;
    font-weight: 500;
    padding: 14px 16px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
}

textarea {
    min-height: 110px;
    resize: vertical;
    padding-top: 14px;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--runera-primary);
    box-shadow: 0 0 0 4px rgba(53, 37, 205, 0.10);
    background: #fff;
}

/* Readonly / disabled */
input[disabled],
select[disabled],
textarea[disabled] {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Plan / package radio cards */
.plan-options,
.package-options,
.billing-options,
.radio-cards,
.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 24px;
}

.plan-options label,
.package-options label,
.billing-options label,
.radio-cards label,
.plan-grid label {
    position: relative;
    border: 1px solid var(--runera-border);
    background: var(--runera-surface);
    border-radius: 18px;
    padding: 18px 18px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.02);
}

.plan-options label:hover,
.package-options label:hover,
.billing-options label:hover,
.radio-cards label:hover,
.plan-grid label:hover {
    border-color: rgba(53, 37, 205, 0.35);
    box-shadow: 0 10px 25px -18px rgba(53, 37, 205, 0.35);
}

.plan-options input[type="radio"],
.package-options input[type="radio"],
.billing-options input[type="radio"],
.radio-cards input[type="radio"],
.plan-grid input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-options input[type="radio"]:checked+*,
.package-options input[type="radio"]:checked+*,
.billing-options input[type="radio"]:checked+*,
.radio-cards input[type="radio"]:checked+*,
.plan-grid input[type="radio"]:checked+* {
    color: var(--runera-text);
}

.plan-options label:has(input[type="radio"]:checked),
.package-options label:has(input[type="radio"]:checked),
.billing-options label:has(input[type="radio"]:checked),
.radio-cards label:has(input[type="radio"]:checked),
.plan-grid label:has(input[type="radio"]:checked) {
    border-color: var(--runera-primary);
    background: linear-gradient(180deg, #ffffff 0%, #f7f5ff 100%);
    box-shadow: 0 16px 40px -26px rgba(53, 37, 205, 0.45);
}

/* Price inside cards */
.plan-price,
.package-price,
.price {
    display: block;
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    color: var(--runera-primary);
    margin-bottom: 6px;
}

.plan-name,
.package-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--runera-text);
    margin-bottom: 6px;
}

.plan-meta,
.package-meta {
    display: block;
    font-size: 12px;
    color: var(--runera-muted);
}

/* Checkboxes / radio */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--runera-primary);
}

/* Section dividers / cards */
fieldset,
.form-section,
.section-card,
.et_pb_blurb,
.et_pb_text,
.et_pb_code {
    border-radius: 18px;
}

hr {
    border: 0;
    border-top: 1px solid var(--runera-border);
    margin: 24px 0;
}

/* Submit button */
button,
input[type="submit"],
input[type="button"],
.et_pb_button,
.et_pb_contact_submit {
    appearance: none;
    border: 0;
    border-radius: 14px !important;
    background: linear-gradient(135deg, var(--runera-primary) 0%, var(--runera-primary-2) 100%);
    color: #fff !important;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    min-height: 52px;
    padding: 0 22px;
    cursor: pointer;
    box-shadow: 0 18px 32px -18px rgba(53, 37, 205, 0.55);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.et_pb_button:hover,
.et_pb_contact_submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px -18px rgba(53, 37, 205, 0.60);
    opacity: 0.98;
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
.et_pb_button:active,
.et_pb_contact_submit:active {
    transform: translateY(0);
}

/* Terms / footer links inside form */
a {
    color: var(--runera-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Small trust strip if present */
.trust-note,
.form-note,
.notice,
.terms-note {
    font-size: 12px;
    color: var(--runera-muted);
    line-height: 1.5;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    form {
        padding: 20px;
        border-radius: 20px;
    }

    h1 {
        font-size: 30px;
    }

    .plan-options,
    .package-options,
    .billing-options,
    .radio-cards,
    .plan-grid {
        grid-template-columns: 1fr;
    }

    .plan-price,
    .package-price,
    .price {
        font-size: 22px;
    }
}