/* =========================
   Main Calculator
========================= */

.bscp-bra-calculator {
    max-width: 500px;
    margin: auto;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 10px;
    text-align: center;
    font-family: sans-serif;
    background: #fff;
}

.bscp-bra-calculator h2 {
    margin-bottom: 5px;
}

.bra-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* =========================
   Unit Toggle
========================= */

.bscp-unit-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.bscp-unit-toggle button {
    padding: 6px 18px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.bscp-unit-toggle button:hover {
    background: #f5f5f5;
}

.bscp-unit-toggle button.active {
    background: #2db4c8;
    color: #fff;
    border-color: #2db4c8;
}

/* =========================
   Fields
========================= */

.bscp-fields {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
}

.bscp-field {
    width: 100%;
    text-align: left;
}

.bscp-field label {
    font-size: 14px;
    font-weight: 600;
}

.bscp-field input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.bscp-field small {
    display: block;
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

/* =========================
   Button
========================= */

.bscp-bra-calc-btn {
    padding: 10px 30px;
    background: #2db4c8;
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s ease;
}

.bscp-bra-calc-btn:hover {
    background: #249fb1;
}

/* =========================
   Result
========================= */

.bscp-result {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
}

/* =========================
   Modal
========================= */

.bscp-bra-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.bscp-bra-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: bscpScaleIn 0.25s ease;
}

.bscp-bra-modal-content h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.bscp-bra-modal-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.bscp-bra-modal-content button {
    margin-top: 15px;
    padding: 8px 22px;
    border: none;
    background: #2db4c8;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.bscp-bra-modal-content button:hover {
    background: #249fb1;
}

/* =========================
   Modal Animation
========================= */

@keyframes bscpScaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================
   Responsive
========================= */

@media (max-width: 480px) {
    .bscp-fields {
        flex-direction: column;
    }
}
