/* Dog Bite Calculator Styles */
.dbc-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dbc-title {
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.dbc-subtitle {
    color: #666;
    font-size: 16px;
    text-align: center;
    margin-bottom: 40px;
}

/* Progress Bar */
.dbc-progress-container {
    margin-bottom: 40px;
}

.dbc-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.dbc-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #2e5176 0%, #1e3d56 100%);
    transition: width 0.4s ease;
    border-radius: 10px;
}

.dbc-progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.dbc-progress-text #dbc-current-step {
    color: #2e5176;
    font-size: 18px;
}

/* Multi-step Form */
.dbc-container .dbc-step {
    display: none !important;
    animation: slideIn 0.4s ease;
}

.dbc-container .dbc-step.dbc-step-active {
    display: block !important;
}

.dbc-step-active {
    display: block !important;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dbc-question {
    margin-bottom: 32px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #2e5176;
}

.dbc-question-label {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.dbc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dbc-radio-option {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.dbc-radio-option:hover {
    border-color: #2e5176;
    background: #f0f4f8;
    transform: translateX(4px);
}

.dbc-radio-option.active {
    border-color: #2e5176;
    background: #e8f0f7;
}

.dbc-radio-option input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: #2e5176;
}

.dbc-radio-option input[type="radio"]:checked + span {
    color: #2e5176;
    font-weight: 600;
}

.dbc-radio-option span {
    cursor: pointer;
    font-size: 15px;
    color: #333;
    flex: 1;
}

/* Navigation Buttons */
.dbc-navigation {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.dbc-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dbc-btn-back {
    background: #f0f0f0;
    color: #666;
    flex: 0 0 auto;
}

.dbc-btn-back:hover {
    background: #e0e0e0;
    color: #333;
}

.dbc-btn-next,
.dbc-btn-submit {
    flex: 1;
    background: linear-gradient(135deg, #2e5176 0%, #1e3d56 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(46, 81, 118, 0.3);
}

.dbc-btn-next:hover,
.dbc-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 81, 118, 0.4);
}

.dbc-btn:active {
    transform: translateY(0);
}

.dbc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.dbc-submit-btn {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #2e5176 0%, #1e3d56 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    box-shadow: 0 4px 12px rgba(46, 81, 118, 0.3);
}

.dbc-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 81, 118, 0.4);
}

.dbc-submit-btn:active {
    transform: translateY(0);
}

.dbc-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Opt-in Form Styles */
.dbc-optin-section {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dbc-form-group {
    margin-bottom: 24px;
}

.dbc-form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.dbc-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.dbc-form-group input:focus {
    outline: none;
    border-color: #2e5176;
    box-shadow: 0 0 0 3px rgba(46, 81, 118, 0.1);
}

.dbc-privacy-note {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.dbc-privacy-note small {
    font-size: 13px;
}

/* Loading State */
.dbc-loading {
    text-align: center;
    padding: 60px 20px;
}

.dbc-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2e5176;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dbc-loading p {
    color: #666;
    font-size: 16px;
}

/* Button Loader */
.dbc-btn-loader {
    display: inline-block;
}

/* Error Message */
.dbc-error {
    background: #fee;
    border: 2px solid #fcc;
    color: #c33;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dbc-container {
        padding: 24px;
        margin: 20px auto;
    }
    
    .dbc-title {
        font-size: 24px;
    }
    
    .dbc-subtitle {
        font-size: 14px;
    }
    
    .dbc-question {
        padding: 16px;
    }
    
    .dbc-question-label {
        font-size: 18px;
    }
    
    .dbc-radio-option {
        padding: 12px;
    }
    
    .dbc-radio-option span {
        font-size: 14px;
    }
    
    .dbc-navigation {
        flex-direction: column;
    }
    
    .dbc-btn-back {
        order: 2;
    }
    
    .dbc-btn-next,
    .dbc-btn-submit {
        order: 1;
    }
}

/* Smooth Transitions */
.dbc-quiz-section,
.dbc-optin-section {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dbc-hidden {
    display: none !important;
}

/* Success State */
.dbc-success {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    color: #2e7d32;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}
