/* ============================================================
   Membership Form - Additional Styles
   Works on top of smart-forms.css + smart-addons.css
   ============================================================ */

/* Override Materialize nav styles inside form */
.smart-forms nav,
.smart-forms .form-navigation {
    background-color: transparent !important;
    box-shadow: none !important;
    height: auto !important;
    line-height: normal !important;
    color: inherit !important;
}

/* Wizard step width: 4 steps = 25% each */
.smart-steps .wizard > .steps > ul > li {
    width: 25% !important;
}

/* Orange theme for steps */
.steps-theme-primary .wizard > .steps .current a,
.steps-theme-primary .wizard > .steps .current a:hover,
.steps-theme-primary .wizard > .steps .current a:active {
    background: #e0a730;
    color: #fff;
}

.steps-theme-primary .wizard > .steps .current a:before {
    background-color: #e0a730;
}

.steps-theme-primary .wizard > .steps .done a,
.steps-theme-primary .wizard > .steps .done a:hover,
.steps-theme-primary .wizard > .steps .done a:active {
    background: #c99320;
    color: #fff;
}

.steps-theme-primary .wizard > .steps .done a:before {
    background-color: #c99320;
}

/* Orange accent color for taglines */
.smart-forms .tagline span {
    color: #e0a730;
    text-transform: uppercase;
    font-weight: 600;
}

/* Tagline needs top margin so the span (top: -10px) isn't clipped */
.smart-forms .tagline {
    margin-top: 20px;
}

/* Override smart-addons overflow:hidden on wizard content — clips tagline spans */
.smart-forms .wizard > .content {
    overflow: visible;
}

.orange-text {
    color: #e0a730;
}

/* Required star */
.required-star {
    color: #e0a730;
    font-style: normal;
    margin-left: 2px;
}

/* Field labels */
.smart-forms .field-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #213143;
    margin-bottom: 5px;
}

/* Validation errors - match old form style */
.smart-forms em.state-error {
    color: #c0392b;
    font-size: 12px;
    font-style: normal;
    display: block;
    margin-top: 4px;
}

.smart-forms .has-error .gui-input,
.smart-forms .has-error select {
    border-color: #c0392b !important;
    background-color: #fdf2f2 !important;
}

/* Input hint */
.smart-forms .input-hint {
    display: block;
    font-size: 12px;
    color: #999;
    font-style: italic;
    margin: 5px 0 10px;
}

/* Notification boxes */
.smart-forms .notification {
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 3px;
}

.smart-forms .notification.alert-success,
.smart-forms .alert-success {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.smart-forms .notification.alert-info,
.smart-forms .alert-info {
    background-color: #d9edf7;
    border: 1px solid #bce8f1;
    color: #31708f;
}

/* Price infobox */
#price-infobox h3 {
    margin-top: 14px;
    font-size: 16px;
}

#price-infobox p {
    margin: 5px 0;
    line-height: 1.6;
}

/* Summary table */
.smart-forms .price_table {
    width: 100%;
    border-collapse: collapse;
}

.smart-forms .price_table td {
    padding: 8px 10px;
    vertical-align: top;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.smart-forms .price_table tr.odd td {
    background: #f5f5f5;
}

.smart-forms .price_table table {
    margin-top: 5px;
}

.smart-forms .price_table table td {
    padding: 2px 5px 2px 0;
}

/* Button styling — outlined orange, matches old design */
.smart-forms .btn,
.smart-forms button.btn {
    display: inline-block;
    padding: 10px 30px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 2px solid #e0a730;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: #e0a730;
    text-decoration: none;
    font-family: inherit;
    line-height: normal;
    height: auto;
}

.smart-forms .btn:hover,
.smart-forms button.btn:hover {
    background: #e0a730;
    color: #fff;
}

.smart-forms .btn-primary,
.smart-forms button.btn-primary {
    background: #fff;
    color: #e0a730;
    border-color: #e0a730;
}

.smart-forms .btn-primary:hover,
.smart-forms button.btn-primary:hover {
    background: #e0a730;
    color: #fff;
}

.smart-forms .btn-default,
.smart-forms button.btn-default {
    background: #fff;
    color: #e0a730;
    border-color: #e0a730;
}

.smart-forms .btn-default:hover,
.smart-forms button.btn-default:hover {
    background: #e0a730;
    color: #fff;
}

/* Navigation actions layout */
.smart-forms .wizard > .actions {
    position: relative;
    display: block;
    text-align: right;
    width: 100%;
    padding: 15px 8px;
}

.smart-forms .wizard > .actions ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.smart-forms .wizard > .actions ul li {
    display: inline-block;
    float: none;
    margin: 0;
}

/* Spacer utilities */
.spacer-t10 {
    margin-top: 10px;
}

.spacer-t30 {
    margin-top: 30px;
}

/* Smart link - orange */
.smart-forms a {
    color: #e0a730;
}

/* Fieldset reset for EXT:form */
.smart-forms fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

/* ============================================================
   Step 1: Two-column layout (selects left, price box right)
   ============================================================ */
@media (min-width: 768px) {
    fieldset[data-step="step1-membership"] {
        display: flex;
        flex-wrap: wrap;
    }

    /* Intro text: full width */
    fieldset[data-step="step1-membership"] > :first-child {
        flex: 0 0 100%;
    }

    /* Select rows: left column */
    fieldset[data-step="step1-membership"] > .frm-row {
        flex: 0 0 38%;
    }

    /* Price infobox section: right column */
    fieldset[data-step="step1-membership"] > .section:has(#price-infobox) {
        flex: 0 0 58%;
        margin-left: 4%;
    }

    /* Foerder note: full width */
    fieldset[data-step="step1-membership"] > .section:has(#foerder-note) {
        flex: 0 0 100%;
    }
}


/* Price infobox styling */
#price-infobox {
    display: none;
    background: rgb(239, 239, 239);
    padding: 10px 15px;
    border-radius: 3px;
}

/* Section spacing within fieldset */
.smart-forms fieldset > .frm-row {
    padding: 0 5px;
}

.smart-forms fieldset > .section {
    padding: 0 5px;
}
