
/* ===== FRANCHISE FINDER FORM STYLES ===== */

#franchiesgridecode,
#frachiesrows,
#franchisesgridecode,
#franchisesrows {
    display: none;
}

#franchiesgridecode.show-results,
#frachiesrows.show-results,
#franchisesgridecode.show-results,
#franchisesrows.show-results {
    display: block;
}

/* Optional: helps neutralize the outer Divi section if this block controls the visible area */
#FranchiseFinderFormWrap {
    width: 100%;
}

/* Form Container */
#FranchiseFinderForm {
    width: 68%;
    max-width: 980px;
    min-width: 320px;
    margin: 50px auto 70px auto;
    padding: 42px 48px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(20, 45, 75, 0.08);
    border-top: 5px solid #123c69;
}

#FranchiseFinderForm .form-header {
    text-align: center;
    margin-bottom: 28px;
}

#FranchiseFinderForm .form-header h3 {
    margin: 0 0 8px 0;
    font-size: 30px;
    color: #1f1f1f;
    font-weight: 700;
    line-height: 1.2;
}

#FranchiseFinderForm .form-header p {
    color: #666;
    font-size: 15px;
    margin: 0;
}

/* Progress */
.franchise-progress {
    width: 100%;
    height: 4px;
    background: #eef1f4;
    border-radius: 999px;
    overflow: hidden;
    margin: 0 0 30px 0;
}

.franchise-progress-fill {
    width: 33%;
    height: 100%;
    background: #123c69;
    border-radius: 999px;
    transition: width 0.35s ease;
}

/* Step Labels */
.step-label {
    margin: 28px 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e6e6e6;
    color: #777;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.1px;
}

/* Form Fields */
#FranchiseFinderForm fieldset {
    border: none;
    padding: 0;
    margin: 0 0 24px 0;
}

#FranchiseFinderForm label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 15px;
    line-height: 1.4;
}

#FranchiseFinderForm select,
#FranchiseFinderForm input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dcdfe3;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#FranchiseFinderForm select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

#FranchiseFinderForm select:focus,
#FranchiseFinderForm input[type="text"]:focus {
    outline: none;
    border-color: #123c69;
    box-shadow: 0 0 0 3px rgba(18, 60, 105, 0.14);
}

.helper-text {
    display: block;
    margin-top: 8px;
    color: #777;
    font-size: 13px;
    line-height: 1.4;
}

/* Hidden State Field */
#FranchiseFinderForm .state-fieldset.hidden {
    display: none;
}

/* Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 24px;
}

.form-row fieldset {
    margin: 0;
}

.form-full-width {
    grid-column: 1 / -1;
}

/* Buttons */
.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn-show-results {
    flex: 1;
    background: #123c69;
    color: #fff;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 18px rgba(18, 60, 105, 0.18);
}

.btn-show-results:hover {
    background: #0b2a4a;
    transform: translateY(-1px);
}

.btn-clear {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 16px 22px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-clear:hover {
    background: #f5f5f5;
    color: #333;
}

.trust-line {
    margin: 14px 0 0 0;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* Results Header */
.results-header {
    max-width: 1200px;
    margin: 0 auto 25px auto;
    padding: 20px 25px;
    background: #f8f9fa;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.results-header.visible {
    display: flex;
}

.results-header .results-count {
    font-size: 17px;
    color: #333;
}

.results-header .results-count strong {
    color: #123c69;
}

.results-header .modify-search-btn {
    background: #fff;
    color: #123c69;
    border: 1px solid #123c69;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
}

/* No Results Message */
.no-results-message {
    text-align: center;
    padding: 60px 30px;
    background: #f9f9f9;
    border-radius: 12px;
    margin: 0 auto;
    max-width: 500px;
    display: none;
}

.no-results-message.visible {
    display: block;
}

.no-results-message .btn-modify {
    background: #123c69;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
    #FranchiseFinderForm {
        width: 92%;
        margin: 35px auto 50px auto;
        padding: 28px 22px;
    }

    #FranchiseFinderForm .form-header h3 {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row fieldset {
        margin-bottom: 24px;
    }

    .form-buttons {
        flex-direction: column;
    }

    .btn-show-results,
    .btn-clear {
        width: 100%;
    }

    .results-header {
        flex-direction: column;
        text-align: center;
    }
}
