/* Switch Dewi Online — full shortcode wizard styling.
   Renders cards + form + review without relying on Elementor styling. */

.sdo-wizard--shortcode {
    font-family: "Barlow", sans-serif;
    color: #222;
    box-sizing: border-box;
}

.sdo-wizard--shortcode *,
.sdo-wizard--shortcode *::before,
.sdo-wizard--shortcode *::after {
    box-sizing: border-box;
}

/* Progress bar */
.sdo-wizard--shortcode .sdo-wizard-progress {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.sdo-wizard--shortcode .sdo-wizard-progress li {
    flex: 1;
    height: 4px;
    background: #e6e6e6;
    border-radius: 3px;
    transition: background 200ms ease;
}

.sdo-wizard--shortcode .sdo-wizard-progress li.is-active {
    background: linear-gradient(90deg, #DAA550 0%, #B68330 100%);
}

/* Step heading */
.sdo-wizard--shortcode .sdo-step-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: 36px;
    line-height: 36px;
    letter-spacing: 0.02em;
    margin: 0 0 24px;
    color: #222;
}

/* Sections (lidmaatschap step splits into recurring vs one-time) */
.sdo-wizard--shortcode .sdo-section {
    margin-bottom: 32px;
}

.sdo-wizard--shortcode .sdo-section-intro {
    font-family: "Barlow", sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #444;
    margin: 0 0 16px;
    max-width: 720px;
}

/* Cards grid */
.sdo-wizard--shortcode .sdo-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 0;
}

.sdo-wizard--shortcode .sdo-section + .sdo-wizard-actions,
.sdo-wizard--shortcode .sdo-cards-grid + .sdo-wizard-actions {
    margin-top: 16px;
}

@media only screen and (min-width: 1024px) {
	.sdo-wizard--shortcode .sdo-card {
		max-width: calc(33.333% - 16px);
	}
}

.sdo-wizard--shortcode .sdo-card {
    flex: 1 1 calc(33.333% - 16px);
    min-width: 240px;
    background: #F4F4F4;
    border-radius: 3px;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 120ms ease, outline-color 120ms ease, box-shadow 120ms ease;
    border: 0;
    text-align: left;
}

.sdo-wizard--shortcode .sdo-card-image {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    background: #ddd;
}

.sdo-wizard--shortcode .sdo-card-body {
    padding: 24px;
}

.sdo-wizard--shortcode .sdo-card-body::before {
    content: '';
    display: block;
    width: 20px;
    height: 3px;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #DAA550 0%, #B68330 100%);
}

.sdo-wizard--shortcode .sdo-card-cta {
    display: block;
    margin-top: 16px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: 0.04em;
    color: #B68330;
    text-transform: uppercase;
}

.sdo-wizard--shortcode .sdo-card:hover .sdo-card-cta {
    color: #DAA550;
}

.sdo-wizard--shortcode .sdo-card.sdo-card--selected .sdo-card-cta {
    color: #B68330;
}

.sdo-wizard--shortcode .sdo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.sdo-wizard--shortcode .sdo-card.sdo-card--selected {
    outline: 3px solid #B68330;
    outline-offset: 2px;
}

.sdo-wizard--shortcode .sdo-card-title,
.sdo-wizard--shortcode .sdo-card-title * {
    font-weight: normal !important;
}

.sdo-wizard--shortcode .sdo-card-subtext,
.sdo-wizard--shortcode .sdo-card-subtext * {
    font-weight: normal !important;
}

.sdo-wizard--shortcode .sdo-card-price,
.sdo-wizard--shortcode .sdo-card-price * {
    font-weight: normal !important;
}

.sdo-wizard--shortcode .sdo-card-title {
    display: block;
    font-family: "Bebas Neue", sans-serif;
    font-size: 26px;
    line-height: 26px;
    letter-spacing: 0.02em;
    margin: 0 0 8px;
    color: #222;
}

.sdo-wizard--shortcode .sdo-card-subtext {
    display: block;
    font-family: "Barlow", sans-serif;
    font-size: 16px;
    line-height: 26px;
    margin: 0 0 12px;
    color: #555;
}

.sdo-wizard--shortcode .sdo-card-subtext:empty {
    display: none;
}

.sdo-wizard--shortcode .sdo-card-price {
    display: block;
    font-family: "Bebas Neue", sans-serif;
    font-size: 26px;
    line-height: 26px;
    letter-spacing: 0.02em;
    color: #222;
    margin: 0;
}

.sdo-wizard--shortcode .sdo-price-suffix {
    font-family: "Bebas Neue", sans-serif;
    font-weight: normal !important;
    font-size: 18px;
    line-height: 18px;
    color: #555;
    margin-left: 2px;
    letter-spacing: 0.02em;
}

.sdo-wizard--shortcode .sdo-card--unavailable {
    opacity: 0.45;
    pointer-events: none;
}

/* Gegevens step: form on the left, benefits list on the right.
   Stacks on mobile (form first, benefits second). */
.sdo-wizard--shortcode .sdo-gegevens-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
}

.sdo-wizard--shortcode .sdo-gegevens-form-col {
	width: 100%;
    flex: 1 1 320px;
    min-width: 0;
}

.sdo-wizard--shortcode .sdo-benefits {
    flex: 1 1 320px;
    min-width: 0;
    padding: 24px;
    background: #F4F4F4;
    border-radius: 3px;
}

.sdo-wizard--shortcode .sdo-benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sdo-wizard--shortcode .sdo-benefits-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-family: "Barlow", sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #222;
}

.sdo-wizard--shortcode .sdo-benefits-item::before {
    content: '';
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/></svg>") center/14px no-repeat,
        linear-gradient(90deg, #DAA550 0%, #B68330 100%);
}

@media (max-width: 720px) {
    .sdo-wizard--shortcode .sdo-gegevens-cols {
        flex-direction: column;
    }
    .sdo-wizard--shortcode .sdo-benefits {
        order: 2;
        width: 100%;
    }
}

/* Form */
.sdo-wizard--shortcode .sdo-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 560px;
    margin-bottom: 24px;
}

.sdo-wizard--shortcode .sdo-required {
    color: #e74c3c;
    margin-left: 2px;
}

.sdo-wizard--shortcode .sdo-field {
    display: flex;
    flex-direction: column;
}

.sdo-wizard--shortcode .sdo-field-label {
    font-family: "Barlow", sans-serif;
    font-size: 14px;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
    color: #555;
}

.sdo-wizard--shortcode .sdo-field input,
.sdo-wizard--shortcode .sdo-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    font-family: "Barlow", sans-serif;
    font-size: 16px;
    line-height: 1.4;
    background: #fff;
    color: #222;
    transition: border-color 120ms ease;
}

.sdo-wizard--shortcode .sdo-field input:focus,
.sdo-wizard--shortcode .sdo-field select:focus {
    outline: none;
    border-color: #B68330;
}

.sdo-wizard--shortcode .sdo-field input.is-invalid,
.sdo-wizard--shortcode .sdo-field select.is-invalid {
    border-color: #e74c3c;
    /* background-color (not shorthand) so the select's caret image survives */
    background-color: #fdf6f5;
}

.sdo-wizard--shortcode .sdo-field input::placeholder {
    color: #999;
    opacity: 1; /* Firefox lowers placeholder opacity by default; reset so #999 reads correctly */
}
.sdo-wizard--shortcode .sdo-field input::-webkit-input-placeholder { color: #999; }
.sdo-wizard--shortcode .sdo-field input:-ms-input-placeholder { color: #999; }

/* Gender select: the native <select> chrome looks out of place next to
   the rounded text inputs. Restyle it as a matching pill with a custom
   SVG caret (mirrors the site's .rooster-select pattern). Keeps the
   shared border/focus/invalid rules above. */
.sdo-wizard--shortcode .sdo-field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 25px;
    background-color: #efefef;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 0.65em auto;
    padding-right: 40px;
    cursor: pointer;
}

/* Remove the legacy IE/Edge caret so it doesn't double up with ours. */
.sdo-wizard--shortcode .sdo-field select::-ms-expand {
    display: none;
}

/* Summary list (review step) */
.sdo-wizard--shortcode .sdo-summary {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 8px 16px;
    margin: 0 0 24px;
    padding: 20px 24px;
    background: #F4F4F4;
    border-radius: 3px;
    font-family: "Barlow", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.sdo-wizard--shortcode .sdo-summary dt {
    color: #555;
    margin: 0;
}

.sdo-wizard--shortcode .sdo-summary dd {
    margin: 0;
    color: #222;
}

.sdo-wizard--shortcode .sdo-summary dd:empty::before {
    content: "—";
    color: #aaa;
}

/* Akkoord */
.sdo-wizard--shortcode .sdo-akkoord {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    font-family: "Barlow", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #222;
    cursor: pointer;
}

.sdo-wizard--shortcode .sdo-akkoord input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #B68330;
}

.sdo-wizard--shortcode .sdo-akkoord a {
    color: #B68330;
    text-decoration: underline;
}

/* Buttons */
.sdo-wizard--shortcode .sdo-wizard-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sdo-wizard--shortcode .sdo-btn {
    font-family: "Bebas Neue", sans-serif;
    font-size: 18px;
    line-height: 18px;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    transition: opacity 120ms ease, transform 120ms ease;
}

.sdo-wizard--shortcode .sdo-btn--primary {
    color: #fff;
    background: linear-gradient(90deg, #DAA550 0%, #B68330 100%);
}

.sdo-wizard--shortcode .sdo-btn--secondary {
    color: #555;
    background: #e6e6e6;
}

.sdo-wizard--shortcode .sdo-btn:hover:not(:disabled) { opacity: 0.92; transform: translateY(-1px); }
.sdo-wizard--shortcode .sdo-btn:disabled,
.sdo-wizard--shortcode .sdo-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    background: #ccc;
    color: #888;
}

/* Error */
.sdo-wizard--shortcode .sdo-error {
    display: none;
    padding: 12px 16px;
    background: #fdf0ef;
    border-left: 3px solid #e74c3c;
    color: #333;
    margin-bottom: 16px;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.5;
}

.sdo-wizard--shortcode .sdo-error.is-visible { display: block; }

/* Rejoin banner — shown inside the wizard above the lidmaatschap step
   (welcome-back variant, role="note") and as a standalone page when
   ?token= is present but Laravel rejected the token. The standalone
   variant renders without surrounding wizard markup, so it needs to
   stand on its own visually. */
.sdo-rejoin-banner {
    padding: 14px 18px;
    margin-bottom: 18px;
    background: #fff8e8;
    border-left: 3px solid #DAA550;
    border-radius: 3px;
    font-family: "Barlow", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}
.sdo-rejoin-banner strong { display: block; margin-bottom: 4px; }

.sdo-rejoin-banner--error {
    background: #fdf0ef;
    border-left-color: #e74c3c;
}

.sdo-rejoin-banner--standalone {
    max-width: 600px;
    margin: 48px auto;
    padding: 24px 28px;
    border: 1px solid #e74c3c;
    border-left-width: 3px;
    border-radius: 6px;
    font-size: 16px;
}

/* Loading state on submit */
.sdo-wizard--shortcode.is-submitting [data-sdo-submit] { opacity: 0.6; cursor: wait; }

/* Success step */
.sdo-wizard--shortcode .sdo-success-text {
    font-family: "Barlow", sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: #444;
}
