
.bfsg-checker,
.bfsg-checker * {
    box-sizing: border-box;
}

.bfsg-checker {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.bfsg-checker .container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    overflow: hidden;
    animation: slideIn 0.6s ease-out;
}

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

.bfsg-checker .header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bfsg-checker .header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(5deg); }
}

.bfsg-checker .header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.bfsg-checker .header p {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

.bfsg-checker .form-container {
    padding: 40px;
}

.bfsg-checker .question-group {
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.bfsg-checker .question-group:nth-child(1) { animation-delay: 0.1s; }
.bfsg-checker .question-group:nth-child(2) { animation-delay: 0.2s; }
.bfsg-checker .question-group:nth-child(3) { animation-delay: 0.3s; }
.bfsg-checker .question-group:nth-child(4) { animation-delay: 0.4s; }
.bfsg-checker .question-group:nth-child(5) { animation-delay: 0.5s; }

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

.bfsg-checker .question {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.bfsg-checker .question-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.bfsg-checker .options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.bfsg-checker .option {
    flex: 1;
    min-width: 200px;
}

.bfsg-checker .option label {
    display: block;
    padding: 18px 24px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.bfsg-checker .option label:hover {
    border-color: #6366f1;
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.bfsg-checker .option input[type="radio"] {
    display: none;
}

.bfsg-checker .option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-color: #6366f1;
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.bfsg-checker .number-input {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.bfsg-checker .number-input input {
    flex: 1;
    min-width: 200px;
    padding: 18px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.bfsg-checker .number-input input:focus {
    outline: none;
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.bfsg-checker .check-button {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.5px;
}

.bfsg-checker .check-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.3);
}

.bfsg-checker .result {
    margin-top: 30px;
    padding: 25px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.bfsg-checker .result.show {
    opacity: 1;
    transform: translateY(0);
}

.bfsg-checker .result.affected {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-left: 6px solid #b91c1c;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.2);
}

.bfsg-checker .result.not-affected {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-left: 6px solid #047857;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.2);
}

.bfsg-checker .result.unclear {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-left: 6px solid #b45309;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.2);
}

.bfsg-checker .result-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.bfsg-checker .details {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    text-align: left;
}

.bfsg-checker .details h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.bfsg-checker .details ul {
    list-style: none;
    padding-left: 0;
}

.bfsg-checker .details li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.bfsg-checker .details li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #fff;
    font-weight: bold;
}

.bfsg-checker .help-text {
    font-size: 0.95rem;
    color: #6b7280;
    margin-top: 12px;
    font-style: italic;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .bfsg-checker .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .bfsg-checker .header {
        padding: 20px;
    }
    
    .bfsg-checker .header h1 {
        font-size: 1.8rem;
    }
    
    .bfsg-checker .form-container {
        padding: 25px;
    }
    
    .bfsg-checker .question {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .bfsg-checker .question-icon {
        margin-right: 0;
        margin-bottom: 15px;
        align-self: start;
    }
    
    .bfsg-checker .options {
        flex-direction: column;
    }
    
    .bfsg-checker .option {
        min-width: auto;
    }
    
    .bfsg-checker .option label {
        padding: 15px 18px;
        font-size: 0.95rem;
        text-align: start
    }
    
    .bfsg-checker .number-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bfsg-checker .number-input input {
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .bfsg-checker .number-input span {
        text-align: end;
        font-weight: 600;
        margin-top: -18px;
        color: #6366f1;
    }
    
    .bfsg-checker .check-button {
        font-size: 1.2rem;
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .bfsg-checker .container {
        margin: 5px;
        border-radius: 12px;
    }
    
    .bfsg-checker .header {
        padding: 15px;
    }
    
    .bfsg-checker .header h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .bfsg-checker .header p {
        font-size: 1rem;
    }
    
    .bfsg-checker .form-container {
        padding: 20px;
    }
    
    .bfsg-checker .question-group {
        margin-bottom: 25px;
    }
    
    .bfsg-checker .question {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .bfsg-checker .question-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .bfsg-checker .option label {
        padding: 12px 15px;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    
    .bfsg-checker .number-input input {
        padding: 15px;
        font-size: 1rem;
        border-radius: 12px;
    }
    
    .bfsg-checker .help-text {
        font-size: 0.85rem;
        margin-top: 10px;
    }
    
    .bfsg-checker .check-button {
        font-size: 1.1rem;
        padding: 16px;
        margin-top: 30px;
    }
    
    .bfsg-checker .result {
        padding: 20px;
        font-size: 1rem;
    }
    
    .bfsg-checker .result-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .bfsg-checker .details {
        padding: 15px;
        margin-top: 15px;
    }
    
    .bfsg-checker .details h3 {
        font-size: 1.1rem;
    }
}
