/* --- Main Container --- */
.sfs-funnel-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 20px 30px;
    background: #000000;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Progress Bar --- */
.sfs-progress-bar {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 25px;
    margin-bottom: 2rem;
    position: relative;
    height: 25px;
}

.sfs-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 25px;
    transition: width 0.4s ease-in-out;
}

.sfs-progress-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

/* --- Steps --- */
.sfs-step {
    display: none;
    animation: fadeIn 0.5s;
}

.sfs-step.active {
    display: block;
}

.sfs-step h2 {
    text-align: center;
    color: #343a40;
    margin-bottom: 2rem;
    font-size: 24px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Options --- */
.sfs-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 576px) {
    .sfs-options {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.sfs-option {
    padding: 20px;
    border: 2px solid #ced4da;
    border-radius: 0px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    color: #fefefe;
}

.sfs-option:hover {
    border-color: #007bff;
    color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.1);
}

.sfs-option.selected {
    background-color: #007bff;
    color: #fff;
    border-color: #0056b3;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

/* --- Navigation --- */
.sfs-navigation {
    margin-top: 2rem;
    text-align: left; /* Aligns back button to the left */
}

#sfs-back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#sfs-back-btn:hover {
    background: #5a6268;
}

.sfs-hidden {
    display: none !important;
}

/* --- Results Section --- */
#sfs-results-wrapper h2, #sfs-form-wrapper h3 {
    text-align: center;
    color: #fefefe;
}
#sfs-results-wrapper p {
    text-align: center;
    color: #fefefe;
    margin-bottom: 2rem;
}

.sfs-plan-card {
    background: #020309;
    border: 1px solid #dee2e6;
    border-left: 5px solid #007bff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 1.5rem;
}

.sfs-plan-card h3 {
    margin-top: 0;
    color: #005a87;
    text-align: left;
}

.sfs-plan-card p {
    text-align: left;
    color: #495057;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.sfs-plan-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #fefefe;
}

/* --- Form --- */
#sfs-form-wrapper {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.sfs-form-header p {
    text-align: center;
    color: #fefefe;
    margin-top: -10px;
}

.sfs-form-field {
    margin-bottom: 15px;
}

.sfs-form-field input,
.sfs-form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box; /* Important */
    transition: border-color 0.2s;
}

.sfs-form-field input:focus,
.sfs-form-field textarea:focus {
    outline: none;
    border-color: #007bff;
}

.sfs-form-field textarea {
    min-height: 100px;
    resize: vertical;
}

#sfs-submit-button {
    width: 100%;
    padding: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

#sfs-submit-button:hover {
    background: #667eea;
}

#sfs-submit-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* --- Messages --- */
#sfs-form-message {
    padding: 15px;
    border-radius: 5px;
    margin-top: 1rem;
    text-align: center;
}
#sfs-form-message.sfs-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
#sfs-form-message.sfs-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
