/* ==========================================================
   Registration steps (EN/DE/NL)
   - two-column form layout for steps 1-3
   - step 4: membership choice
   ========================================================== */

:root {
    --ewr-teal: #19CBC7;
    --ewr-teal-dark: #0E9F9C;
    --ewr-ink: #1F2A37;
    --ewr-muted: #6B7785;
    --ewr-line: #DCE5E8;
}

/* ---------- Two-column form ---------- */
.signup-form .list-unstyled-registration {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 16px;
    grid-auto-flow: row dense; /* fill a half row left empty by a full-width field */
    margin: 0 0 16px;
    padding: 0;
}
.signup-form .list-unstyled-registration > li {
    grid-column: span 1;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
    list-style: none;
}
/* Wide content keeps the full row */
.signup-form .list-unstyled-registration > li:has(textarea),
.signup-form .list-unstyled-registration > li:has(.post-project-categories),
.signup-form .list-unstyled-registration > li:has(.multi-select-skills),
.signup-form .list-unstyled-registration > li:has(.select-pure__select),
.signup-form .list-unstyled-registration > li:has(.ew-ap),
.signup-form .list-unstyled-registration > li:has(input[type="file"]),
.signup-form .list-unstyled-registration > li:has(input[name="hour_rate"]),
.signup-form .list-unstyled-registration > li:has(.checkbox),
.signup-form .list-unstyled-registration > li:has(h2, h3, h4, hr) {
    grid-column: 1 / -1;
}

/* Label-left rows become label-above, so they fit in half a row */
.signup-form .list-unstyled-registration > li > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 10px;
    margin: 0;
}
.signup-form .list-unstyled-registration > li > .row > [class*="col-"] {
    float: none;
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    padding: 0;
}
.signup-form .list-unstyled-registration > li > .row > .field-lable,
.signup-form .list-unstyled-registration > li > .row > [class*="col-"]:has(> .field-lable) {
    flex: 0 0 100%;
}
.signup-form .list-unstyled-registration .field-lable,
.signup-form .list-unstyled-registration .field-lable .label-a {
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #4B5563;
}
/* Telephone: narrow country code next to the number */
.signup-form .list-unstyled-registration > li > .row > [class*="col-"]:has(> select[name="countrycode"]) {
    flex: 0 0 110px;
}
/* Hourly rate: rate | currency | negotiable */
.signup-form .list-unstyled-registration > li > .row > [class*="col-"]:has(> select[name="currency"]) {
    flex: 0 0 110px;
}
.signup-form .list-unstyled-registration > li > .row > [class*="col-"]:has(.checkbox) {
    align-self: center;
}

/* Fields: one consistent size */
.signup-form .list-unstyled-registration .input-a,
.signup-form .list-unstyled-registration .select-a {
    height: 46px;
    font-size: 14px;
    border-radius: 10px;
}
.signup-form .list-unstyled-registration .checkbox { margin: 0; }

@media (max-width: 767px) {
    .signup-form .list-unstyled-registration { grid-template-columns: 1fr; }
}

/* ---------- Step 3: upload box ---------- */
.signup-form .upload-files {
    border-radius: 14px;
}

/* ---------- Step 4: membership choice ---------- */
.ew-reg-plans .ew-reg-plans__intro {
    max-width: 640px;
    margin: 8px auto 28px;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ewr-muted);
}
.ew-reg-plans__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 880px;
    margin: 0 auto;
    align-items: stretch;
}
.ew-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 26px 24px;
    background: #fff;
    border: 1px solid #E6EDEF;
    border-radius: 18px;
    box-shadow: 0 14px 34px -24px rgba(31, 42, 55, .35);
}
.ew-plan--premium {
    border: 2px solid var(--ewr-teal);
    box-shadow: 0 18px 40px -22px rgba(14, 159, 156, .45);
}
.ew-plan__ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    background: linear-gradient(90deg, #F5B041 0%, #FDCB8E 100%);
    color: #5A3A0E;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.ew-plan__head { text-align: center; margin-bottom: 18px; }
.ew-plan__head h3 { margin: 0 0 10px; font-size: 22px; font-weight: 700; color: var(--ewr-ink); }
.ew-plan__price {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--ewr-ink);
}
.ew-plan__price sup { font-size: 18px; top: -0.9em; margin-right: 2px; }
.ew-plan__price small { font-size: 15px; font-weight: 600; color: var(--ewr-teal-dark); margin-left: 4px; }
.ew-plan__note { margin-top: 6px; font-size: 13px; color: var(--ewr-muted); }

.ew-plan__cycle {
    display: inline-flex;
    padding: 4px;
    margin-bottom: 14px;
    background: #F1F6F7;
    border-radius: 999px;
}
.ew-plan__cycle label {
    margin: 0;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ewr-muted);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.ew-plan__cycle label input { position: absolute; opacity: 0; pointer-events: none; }
.ew-plan__cycle label.is-on { background: #fff; color: var(--ewr-teal-dark); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }

.ew-plan__features {
    flex: 1 1 auto;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}
.ew-plan__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}
.ew-plan__features li i { color: var(--ewr-teal-dark); margin-top: 4px; font-size: 12px; }
.ew-plan__features li.ew-plan__all { font-weight: 700; color: var(--ewr-ink); }

.ew-plan__btn {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.ew-plan__btn--ghost {
    background: #fff;
    color: var(--ewr-teal-dark);
    border: 2px solid var(--ewr-teal);
}
.ew-plan__btn--ghost:hover { background: #EEF9F9; }
.ew-plan__secure {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    color: var(--ewr-muted);
}
.ew-reg-plans__later {
    margin: 22px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--ewr-muted);
}
@media (max-width: 767px) {
    .ew-reg-plans__grid { grid-template-columns: 1fr; }
    .ew-plan--premium { order: -1; }
}
