/* Smart Dog Food Recommender - Complete CSS with Fixed Dropdown Padding */

#sdfr-quiz-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    animation: sdfr-slideIn 0.3s ease;
}

#sdfr-quiz-wrapper * {
    box-sizing: border-box;
}

#sdfr-quiz-wrapper .sdfr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

#sdfr-quiz-wrapper .sdfr-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    background: #FFF5E6;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#sdfr-quiz-wrapper .sdfr-modal-header {
    background: transparent;
    color: #2D3436;
    padding: 28px 56px 20px 28px;
    text-align: center;
    position: relative;
    border-bottom: none;
}

#sdfr-quiz-wrapper .sdfr-modal-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #2D3436;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

#sdfr-quiz-wrapper .sdfr-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 50%;
    color: #2D3436;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

#sdfr-quiz-wrapper .sdfr-close:hover {
    background: #FF8C42;
    border-color: #FF8C42;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

#sdfr-quiz-wrapper .sdfr-progress-bar {
    height: 6px;
    background: rgba(45, 52, 54, 0.1);
    margin: 16px 28px 0;
    border-radius: 3px;
    overflow: hidden;
}

#sdfr-quiz-wrapper .sdfr-progress-fill {
    height: 100%;
    background: #FF8C42;
    width: 0;
    transition: width 0.5s ease;
    border-radius: 3px;
}

#sdfr-quiz-wrapper .sdfr-modal-body {
    padding: 24px 28px 32px;
}

#sdfr-quiz-wrapper .sdfr-step {
    display: none;
    min-height: 280px;
}

#sdfr-quiz-wrapper .sdfr-step.active {
    display: block;
    animation: sdfr-fadeIn 0.4s ease;
}

#sdfr-quiz-wrapper .sdfr-step-header {
    text-align: center;
    margin-bottom: 28px;
}

#sdfr-quiz-wrapper .sdfr-step-header h3 {
    font-size: 24px;
    color: #2D3436;
    margin: 0 0 8px 0;
    font-weight: 700;
    letter-spacing: -0.01em;
}

#sdfr-quiz-wrapper .sdfr-step-header p {
    font-size: 16px;
    color: #636E72;
    margin: 0;
    font-weight: 400;
}

#sdfr-quiz-wrapper .sdfr-welcome {
    text-align: center;
    padding: 20px 0;
}

#sdfr-quiz-wrapper .sdfr-welcome-icon {
    font-size: 64px;
    margin-bottom: 20px;
    line-height: 1;
    animation: sdfr-bounce 2s infinite;
}

#sdfr-quiz-wrapper .sdfr-welcome h3 {
    font-size: 26px;
    margin: 0 0 12px 0;
    color: #2D3436;
    line-height: 1.3;
    font-weight: 700;
}

#sdfr-quiz-wrapper .sdfr-welcome p {
    color: #636E72;
    margin: 0 0 28px 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
}

#sdfr-quiz-wrapper .sdfr-urgency-text {
    margin-top: 20px;
    font-size: 14px;
    color: #FF8C42;
    font-weight: 500;
    animation: sdfr-pulse-text 2s infinite;
}

#sdfr-quiz-wrapper .sdfr-btn {
    display: inline-block;
    padding: 16px 48px;
    background: #FF8C42;
    color: white !important;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    line-height: 1;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
    white-space: nowrap;
}

#sdfr-quiz-wrapper .sdfr-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
    background: #FF7A2F;
}

#sdfr-quiz-wrapper .sdfr-btn:active {
    transform: translateY(0);
}

#sdfr-quiz-wrapper .sdfr-final-cta {
    background: linear-gradient(135deg, #FF8C42, #FF6B35);
    animation: sdfr-glow 2s infinite;
}

#sdfr-quiz-wrapper .sdfr-form-group {
    margin-bottom: 24px;
}

#sdfr-quiz-wrapper .sdfr-form-group label {
    display: block;
    margin: 0 0 12px 0;
    font-weight: 600;
    color: #2D3436;
    font-size: 17px;
    line-height: 1.4;
}

#sdfr-quiz-wrapper .sdfr-form-group input,
#sdfr-quiz-wrapper .sdfr-form-group select {
    width: 100%;

    border: 2px solid #E8D5C4;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: #2D3436;
    font-weight: 500;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* FIXED: Select dropdown padding and appearance */
#sdfr-quiz-wrapper .sdfr-form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23636E72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;

    line-height: 1.2;
    cursor: pointer;
}

/* Style for placeholder option */
#sdfr-quiz-wrapper .sdfr-form-group select option[value=""] {
    color: #B2BEC3;
}

/* Style for dropdown when focused */
#sdfr-quiz-wrapper .sdfr-form-group select:focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8C42' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

#sdfr-quiz-wrapper .sdfr-form-group input::placeholder {
    color: #B2BEC3;
    font-weight: 400;
}

#sdfr-quiz-wrapper .sdfr-form-group input:focus,
#sdfr-quiz-wrapper .sdfr-form-group select:focus {
    outline: none;
    border-color: #FF8C42;
    box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.1);
}

#sdfr-quiz-wrapper .sdfr-helper {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #95A5A6;
    font-weight: 400;
}

#sdfr-quiz-wrapper .sdfr-loader {
    text-align: center;
    padding: 60px 20px;
}

#sdfr-quiz-wrapper .sdfr-spinner {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border: 4px solid #FFE5D3;
    border-top: 4px solid #FF8C42;
    border-radius: 50%;
    animation: sdfr-spin 1s linear infinite;
}

#sdfr-quiz-wrapper .sdfr-loader-message {
    font-size: 18px;
    color: #2D3436;
    margin: 0 0 8px 0;
    line-height: 1.5;
    font-weight: 600;
}

#sdfr-quiz-wrapper .sdfr-loader-submessage {
    font-size: 14px;
    color: #95A5A6;
    margin: 0;
}

/* Result section padding */
#sdfr-quiz-wrapper .sdfr-result {
    text-align: center;
    padding: 10px 0 20px 0;
}

#sdfr-quiz-wrapper .sdfr-success-icon {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1;
}

#sdfr-quiz-wrapper .sdfr-personalized-message {
    font-size: 16px;
    color: #636E72;
    margin: 0 0 28px 0;
    line-height: 1.6;
    font-weight: 400;
    padding: 0 10px;
}

#sdfr-quiz-wrapper .sdfr-brand-recommendation {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin: 0 0 24px 0;
    border: 2px solid #FFE5D3;
    position: relative;
}

#sdfr-quiz-wrapper .sdfr-recommendation-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #FF8C42;
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

#sdfr-quiz-wrapper .sdfr-brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #2D3436;
    margin: 16px 0 16px 0;
    line-height: 1.3;
}

#sdfr-quiz-wrapper .sdfr-brand-features {
    color: #636E72;
    margin: 0 0 16px 0;
    text-align: left;
    line-height: 1.6;
}

#sdfr-quiz-wrapper .sdfr-brand-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sdfr-quiz-wrapper .sdfr-brand-features li {
    padding: 10px 0 10px 28px;
    position: relative;
    line-height: 1.5;
    font-size: 15px;
    font-weight: 500;
}

#sdfr-quiz-wrapper .sdfr-brand-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27AE60;
    font-weight: bold;
    font-size: 18px;
}

#sdfr-quiz-wrapper .sdfr-cta-button {
    background: #FF8C42;
    padding: 18px 56px;
    font-size: 19px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
    margin: 24px 0 20px 0;
}

#sdfr-quiz-wrapper .sdfr-cta-button:hover {
    background: #FF7A2F;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 140, 66, 0.5);
}

#sdfr-quiz-wrapper .sdfr-scarcity-notice {
    font-size: 14px;
    color: #E74C3C;
    font-weight: 500;
    margin: 20px 0 10px 0;
    animation: sdfr-pulse-text 3s infinite;
}

#sdfr-quiz-wrapper .sdfr-error-message {
    display: none;
    background: #FFEAA7;
    color: #D63031;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    border: 1px solid #FDCB6E;
}

/* Animations */
@keyframes sdfr-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes sdfr-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes sdfr-pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes sdfr-glow {
    0%, 100% { box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(255, 140, 66, 0.6); }
}

@keyframes sdfr-slideIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes sdfr-highlight {
    0% { background: white; }
    50% { background: #FFF9F0; }
    100% { background: white; }
}

.sdfr-highlight {
    animation: sdfr-highlight 1s ease;
}

body.sdfr-modal-open {
    overflow: hidden !important;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    #sdfr-quiz-wrapper .sdfr-modal {
        width: 95%;
        max-width: none;
    }
    
    #sdfr-quiz-wrapper .sdfr-modal-header {
        padding: 24px 48px 16px 24px;
    }
    
    #sdfr-quiz-wrapper .sdfr-modal-header h2 {
        font-size: 22px;
    }
    
    #sdfr-quiz-wrapper .sdfr-modal-body {
        padding: 20px 24px 28px;
    }
    
    #sdfr-quiz-wrapper .sdfr-btn {
        padding: 14px 32px;
        font-size: 16px;
    }
    
    #sdfr-quiz-wrapper .sdfr-cta-button {
        padding: 16px 40px;
        font-size: 17px;
    }
    
    #sdfr-quiz-wrapper .sdfr-personalized-message {
        font-size: 15px;
    }
    
    #sdfr-quiz-wrapper .sdfr-brand-name {
        font-size: 22px;
    }
}

#sdfr-quiz-wrapper.sdfr-active {
    display: block !important;
}