/*
 * Shared layout/styling for the NBN signup funnel: internet-nbn -> address-search -> select-plan ->
 * personal-details -> service-details -> payment-details -> internet-plan-success (plus the
 * client-auth login detour). Kept in its own file and linked only by those pages, rather than
 * folded into components.css/layout.css, so it doesn't affect unrelated pages that reuse classes
 * like .content-offset-sidebar or .team-person for genuinely different layouts (e.g. about-us.php).
 */

.flow-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 60px;
}

.flow-container h2 {
    margin-top: 0;
}

/* Compact horizontal summary bar - used at the top of address-search and select-plan instead of a
   stack of paragraphs eating vertical space before the actual content. */
.flow-summary-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 16px 24px;
    margin-bottom: 30px;
}

.flow-summary-bar dl {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 0;
}

.flow-summary-bar dt {
    font-weight: 700;
    display: inline;
}

.flow-summary-bar dd {
    display: inline;
    margin: 0;
    color: #555;
}

.flow-cta-link {
    display: inline-block;
    white-space: nowrap;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #007BFF;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.flow-cta-link:hover {
    background-color: #0062cc;
}

/* Two-column layout for pages with a form/options on the left and an order summary on the right
   (personal-details, service-details, payment-details). Collapses to one column on narrow screens. */
.flow-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.flow-main {
    flex: 1 1 0;
    min-width: 0;
}

.flow-aside {
    flex: 0 0 280px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    position: sticky;
    top: 20px;
}

.flow-aside h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.flow-aside dl {
    margin: 0;
}

.flow-aside dt {
    font-weight: 700;
    margin-top: 14px;
}

.flow-aside dt:first-child {
    margin-top: 0;
}

.flow-aside dd {
    margin: 2px 0 0;
    color: #555;
}

@media (max-width: 800px) {
    .flow-layout {
        flex-direction: column;
    }

    .flow-aside {
        flex-basis: auto;
        width: 100%;
        box-sizing: border-box;
        position: static;
    }
}

/* Bordered content panel - used to visually separate distinct choices/sections on a page (e.g. the
   "swap existing service" vs "next port" options on service-details). */
.flow-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.flow-card:not(.flow-card--static):hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.flow-card h3 {
    margin: 0 0 4px;
}

.flow-card .flow-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1fb56d;
    margin-bottom: 12px;
}

.flow-card .flow-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #838383;
}

.flow-card .flow-detail {
    font-size: 0.9rem;
    color: #838383;
}

.flow-card form {
    margin-top: auto;
    padding-top: 16px;
}

.flow-card .hollow-button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* Responsive grid of .flow-card items - used for plan selection and appointment timeslots, so many
   options are visible at once instead of a long single-column list requiring lots of scrolling. */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

@media (max-width: 600px) {
    .flow-grid {
        grid-template-columns: 1fr;
    }
}

/* Vertical list of selectable rows - used for address search results, where each option is a full
   street address (variable width text), so a list reads better than a grid. */
.flow-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flow-list-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 16px 20px;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.flow-list-item:hover {
    border-color: #1fb56d;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Form styling, scoped to .flow-form so it doesn't affect forms on other pages. */
.flow-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.flow-form .flow-field {
    margin-bottom: 1.1rem;
}

.flow-form input[type="text"],
.flow-form input[type="email"],
.flow-form input[type="tel"],
.flow-form input[type="date"],
.flow-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.flow-form input[type="text"]:focus,
.flow-form input[type="email"]:focus,
.flow-form input[type="tel"]:focus,
.flow-form input[type="date"]:focus,
.flow-form input[type="password"]:focus {
    outline: none;
    border-color: #1fb56d;
}

.flow-field-error {
    color: #c62828;
    margin-top: 6px;
    font-size: 0.9rem;
}

.flow-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.flow-checkbox-row input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.flow-checkbox-row label {
    font-weight: 400;
    margin: 0;
}

/* Alert banners - error/success, replacing repeated inline-styled divs. */
.flow-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.flow-alert--error {
    background-color: #ffebee;
    color: #c62828;
}

.flow-alert--success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* Centered single card - used for the client login page and the order-success page. */
.flow-card-centered {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
}

.flow-empty-state {
    grid-column: 1 / -1;
    color: #555;
}
