﻿
.section-title {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.1rem;
}

/* =========================
   Form Layout
   ========================= */

.form {
    max-width: 520px;
}

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

    .form-field label {
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    /* Inputs & Selects */
    .form-field input,
    .form-field select {
        padding: 0.55rem 0.6rem;
        font-size: 1rem;
        border: 1px solid #d1d5db;
        border-radius: 4px;
    }

        .form-field input:focus,
        .form-field select:focus {
            outline: none;
            border-color: var(--color-primary);
        }

/* Uppercase helper (postal codes) */
.uppercase {
    text-transform: uppercase;
}

/* =========================
   Validation
   ========================= */

.field-error {
    color: #b91c1c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* =========================
   Checkbox / Radio
   ========================= */

.checkbox,
.radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.checkbox {
    margin-bottom: 1.5rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox input,
.radio input {
    accent-color: #2563eb;
}

/* =========================
   Review / Summary
   ========================= */

.review-section {
    margin-bottom: 1.75rem;
}

    .review-section p {
        margin: 0.25rem 0;
    }

.review-summary {
    border-top: 1px solid var(--color-primary);
    padding-top: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 0.35rem 0;
}

    .summary-row.total {
        font-weight: 700;
        margin-top: 0.75rem;
    }

/* =========================
   Actions & Buttons
   ========================= */

.form-actions {
    margin-top: 2rem;
}

.form-actions-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Primary Button */
.btn-primary {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    .btn-primary:hover {
        background-color: var(--color-primary-darker);
    }

/* Secondary Button / Links */
.btn-secondary {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--color-secondary);
    color: #111827;
    border-radius: 4px;
    text-decoration: none;
}

    .btn-secondary:hover {
        background-color: var(--color-secondary-darker);
    }

/* =========================
   Responsive (optional)
   ========================= */

@media (max-width: 640px) {
    .form-actions-split {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .btn-primary,
    .btn-success,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}


/* Review layout */
.review-layout {
    display: block;
}

@media (min-width: 768px) {
    .review-layout {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
        align-items: start;
    }

    .review-sidebar {
        border-left: 1px solid 
        padding-left: 1.5rem;
    }
}

/*******************address auto complete ******************/
.autocomplete-wrapper {
    position: relative; /* Important for absolute positioning of dropdown */
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 280px;
    overflow-y: auto;
    display: none;
    margin-top: 2px;
}

    .autocomplete-dropdown.visible {
        display: block;
    }

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

    .autocomplete-item:last-child {
        border-bottom: none;
    }

    .autocomplete-item:hover,
    .autocomplete-item.focused {
        background-color: #f5f5f5;
    }

.autocomplete-loading {
    padding: 12px;
    color: #777;
    text-align: center;
}

/* Add this to your stylesheet */
.readonly-input {
    background-color: #f8f9fa; /* light grey background */
    color: #6c757d; /* muted text color */
    border: 1px solid #ced4da;
    cursor: not-allowed; /* shows forbidden cursor */
    opacity: 0.9; /* slightly faded */
    pointer-events: none; /* prevents clicking/focusing */
}

    /* Optional: make it look even more like disabled */
    .readonly-input:focus {
        outline: none;
        box-shadow: none;
    }