/* ──────────────────────────────────────────────── */
/*          FORM LAYOUT & SPACING FIXES             */
/* ──────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Each form row (label + input) */
.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;                    /* space between label and input */
    margin-bottom: 16px;          /* vertical spacing between rows – main control point */
    min-width: 0;
}

/* Labels */
label,
.float-left.label-width {
    flex: 0 0 240px;              /* fixed width – feel free to change to 220px or 260px */
    min-width: 180px;
    text-align: right;
    padding-right: 12px;
    font-weight: 500;
    white-space: nowrap;          /* keeps label on one line */
    margin: 0;
}

/* Inputs, textareas */
.row input,
.row textarea,
.row select {
    flex: 1 1 auto;               /* take remaining space */
    min-width: 220px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin: 0;
}

/* Mobile – stack vertically */
@media (max-width: 640px) {
    .row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        margin-bottom: 20px;      /* a bit more breathing room when stacked */
    }

    label,
    .float-left.label-width {
        flex: none;
        text-align: left;
        padding-right: 0;
        width: 100%;
        margin-bottom: 4px;
    }

    .row input,
    .row textarea {
        width: 100%;
    }
}

/* Button row */
.button-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin: 32px 0 16px 0;       /* less aggressive than 60px */
    padding-top: 16px;
    border-top: 1px solid #2f2f2f;
}

button {
    width: 180px;                 /* slightly narrower – looks better */
    padding: 10px 16px;
    font-size: 1rem;
}

/* Wizard progress bar – kept mostly as is, just cleaned spacing */
.wizard-flow-chart {
    border-top: 3px solid #ffc72c;
    display: flex;
    justify-content: space-between;
    margin: 40px 0 50px 0;        /* reduced top/bottom */
    padding-top: 20px;
    position: relative;
}

.wizard-flow-chart span {
    display: inline-block;
    width: 38px;
    height: 38px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    border: 3px solid #ffc72c;
    background: white;
    font-weight: bold;
    color: #444;
    position: relative;
    top: -19px;
    z-index: 10;
}

.wizard-flow-chart span.fill {
    background: #ffc72c;
    color: white;
}

/* Optional – make container nicer */
.phppot-container {
    max-width: 720px;             /* or 800px – prevents form from stretching too wide */
    margin: 0 auto;
    padding: 0 20px;
}