/* Styles for the application form and popup */
.bbf-app-wrapper {
    --primary-color: #0a5fa8;
    --secondary-color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: var(--secondary-color);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-family: sans-serif;
}
.bbf-app-wrapper h3 {
    margin-top: 0;
    color: var(--primary-color);
}
.bbf-app-field {
    margin-bottom: 15px;
}
.bbf-app-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary-color);
}
.bbf-app-field input[type="text"],
.bbf-app-field input[type="email"],
.bbf-app-field input[type="number"],
.bbf-app-field select,
.bbf-app-field textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.bbf-app-field textarea {
    resize: vertical;
}
.bbf-app-submit {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}
.bbf-app-submit:hover {
    opacity: 0.9;
}
.bbf-app-range-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bbf-app-range-value {
    min-width: 80px;
}
/* Popup overlay */
#bbf-app-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#bbf-app-popup .bbf-app-popup-content {
    background: var(--secondary-color);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    max-width: 600px;
    width: 90%;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
#bbf-app-popup .bbf-app-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
/* Message */
.bbf-app-message {
    padding: 20px;
    background: #e3f8e5;
    border: 1px solid #b7dfb9;
    color: #155724;
    border-radius: 4px;
    display: none;
}

/* Progress bar styles for multi‑step form */
.bbf-app-progress {
    margin-bottom: 20px;
}
.bbf-app-progress-bar {
    background: #f1f1f1;
    border-radius: 4px;
    overflow: hidden;
    height: 8px;
    position: relative;
}
.bbf-app-progress-fill {
    background: var(--primary-color);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}
.bbf-app-progress-text {
    margin-top: 5px;
    font-size: 14px;
    color: var(--primary-color);
    text-align: right;
}

/* Style the multi‑step navigation buttons to align horizontally */
.bbf-app-field .bbf-app-submit {
    display: inline-block;
    margin-top: 10px;
}