/* ============================================
   BIRTH CONTROL COST CALCULATOR - CSS
   Version 1.0
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

.bcc-wrap * { box-sizing: border-box; margin: 0; padding: 0; }

.bcc-wrap {
    --pink:        #F72585;
    --purple:      #7209B7;
    --violet:      #560BAD;
    --blue:        #480CA8;
    --green:       #06A77D;
    --amber:       #E8A33D;
    --grad:        linear-gradient(135deg, #F72585 0%, #7209B7 100%);
    --grad-soft:   linear-gradient(135deg, rgba(247,37,133,0.08) 0%, rgba(114,9,183,0.08) 100%);
    --white:       #FFFFFF;
    --bg:          #F8F4FF;
    --card-bg:     #FFFFFF;
    --border:      rgba(114,9,183,0.12);
    --text:        #1A1A2E;
    --text-muted:  #6B7280;
    --shadow-card: 0 32px 80px rgba(114,9,183,0.18), 0 8px 24px rgba(247,37,133,0.10);
    --shadow-btn:  0 12px 32px rgba(247,37,133,0.45);
    --radius-xl:   24px;
    --radius-lg:   16px;
    --radius-md:   12px;
    --radius-sm:   8px;
    font-family: 'Inter', sans-serif;
    position: relative;
    padding: 40px 16px;
    background: var(--bg);
    min-height: 100%;
}

.bcc-blob { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0; }
.bcc-blob-1 { width: 300px; height: 300px; background: rgba(247,37,133,0.12); top: -60px; left: -80px; }
.bcc-blob-2 { width: 250px; height: 250px; background: rgba(114,9,183,0.10); bottom: 40px; right: -60px; }
.bcc-blob-3 { width: 180px; height: 180px; background: rgba(72,12,168,0.08); top: 50%; left: 50%; transform: translate(-50%,-50%); }

.bcc-card {
    position: relative;
    z-index: 1;
    max-width: 580px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border: 1px solid var(--border);
}

/* ---- Header ---- */
.bcc-header {
    background: var(--grad);
    padding: 28px 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}
.bcc-header::after { content: ''; position: absolute; width: 200px; height: 200px; background: rgba(255,255,255,0.06); border-radius: 50%; top: -80px; right: -60px; }
.bcc-header::before { content: ''; position: absolute; width: 120px; height: 120px; background: rgba(255,255,255,0.04); border-radius: 50%; bottom: -40px; left: 30%; }

.bcc-header-icon {
    width: 52px; height: 52px;
    background: rgba(255,255,255,0.18);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
}
.bcc-header-icon svg { width: 28px; height: 28px; }
.bcc-header-text { flex: 1; min-width: 0; }
.bcc-header-text h2 { color: #FFFFFF; font-size: 18px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.25; }
.bcc-header-text p { color: rgba(255,255,255,0.75); font-size: 12.5px; font-weight: 400; margin-top: 3px; }

/* ---- Currency Bar ---- */
.bcc-currency-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 30px;
    background: var(--grad-soft);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.bcc-currency-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.bcc-currency-label svg { color: var(--purple); flex-shrink: 0; }
.bcc-select-wrap { position: relative; }
.bcc-select-wrap select {
    padding: 8px 32px 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text);
    background: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}
.bcc-select-wrap select:focus { border-color: var(--pink); }
.bcc-select-arrow { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--purple); pointer-events: none; }

/* ---- Body ---- */
.bcc-body { padding: 24px 30px 28px; display: flex; flex-direction: column; gap: 22px; }

.bcc-step-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bcc-step-num {
    width: 26px; height: 26px;
    background: var(--grad);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(247,37,133,0.35);
}
.bcc-step-label span { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0.1px; }

/* ---- Radio Row (gender / condom yes-no) ---- */
.bcc-radio-row { display: flex; gap: 20px; }
.bcc-radio-option { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text); }
.bcc-radio-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.bcc-radio-dot {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s;
}
.bcc-radio-option input:checked + .bcc-radio-dot { border-color: var(--pink); }
.bcc-radio-option input:checked + .bcc-radio-dot::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--grad);
}

/* ---- Select (method dropdown) ---- */
.bcc-select-wrap-full select {
    width: 100%;
    padding: 14px 46px 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text);
    background: #FAFAFF;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: all 0.25s ease;
}
.bcc-select-wrap-full select:focus { border-color: var(--pink); background: white; box-shadow: 0 0 0 4px rgba(247,37,133,0.08); }
.bcc-select-wrap-full .bcc-select-arrow { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--purple); pointer-events: none; }

/* ---- Currency Input (cost fields) ---- */
.bcc-currency-input-wrap { display: flex; align-items: center; border: 2px solid var(--border); border-radius: var(--radius-md); background: #FAFAFF; overflow: hidden; }
.bcc-currency-prefix { padding: 0 0 0 14px; font-size: 15px; font-weight: 700; color: var(--purple); }
.bcc-currency-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 14px 14px 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text);
    outline: none;
    min-width: 0;
}
.bcc-currency-input-wrap:focus-within { border-color: var(--pink); background: white; box-shadow: 0 0 0 4px rgba(247,37,133,0.08); }
.bcc-plain-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text);
    background: #FAFAFF;
    outline: none;
    transition: all 0.25s ease;
}
.bcc-plain-input:focus { border-color: var(--pink); background: white; box-shadow: 0 0 0 4px rgba(247,37,133,0.08); }

/* ---- Condom Add-on Card ---- */
.bcc-addon-card {
    background: var(--grad-soft);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bcc-addon-header { font-size: 14px; font-weight: 800; color: var(--text); }
.bcc-addon-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}
.bcc-addon-fields.bcc-addon-open { max-height: 260px; opacity: 1; }

/* ---- Period Toggle ---- */
.bcc-period-toggle { display: flex; gap: 8px; }
.bcc-period-btn {
    flex: 1; padding: 12px 10px;
    border: 1.5px solid var(--border);
    background: white;
    border-radius: var(--radius-md);
    font-size: 13px; font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
}
.bcc-period-btn.bcc-period-active { background: var(--grad); color: white; border-color: transparent; box-shadow: 0 6px 16px rgba(247,37,133,0.30); }

/* ---- Calculate Button ---- */
#bcc_btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--grad);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-btn);
}
#bcc_btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent); opacity: 0; transition: opacity 0.3s; }
#bcc_btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(247,37,133,0.50); }
#bcc_btn:hover::before { opacity: 1; }
.bcc-btn-text { font-size: 16px; font-weight: 700; }
.bcc-btn-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: rgba(255,255,255,0.20); border-radius: 50%; }

/* ---- Result Section ---- */
.bcc-result {
    display: none;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.45s cubic-bezier(0.34,1.56,0.64,1);
    border-top: 1px solid var(--border);
    padding: 28px 30px;
    background: linear-gradient(180deg, rgba(247,37,133,0.02) 0%, rgba(114,9,183,0.03) 100%);
}
.bcc-result-visible { opacity: 1 !important; transform: translateY(0) !important; }

.bcc-result-header { display: flex; justify-content: center; margin-bottom: 20px; }
.bcc-result-badge { background: var(--grad); color: white; padding: 6px 18px; border-radius: 100px; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; box-shadow: 0 4px 14px rgba(247,37,133,0.30); }

/* Big Cost Card */
.bcc-due-card {
    background: var(--grad);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(247,37,133,0.25);
}
.bcc-due-card::before { content: ''; position: absolute; width: 150px; height: 150px; background: rgba(255,255,255,0.07); border-radius: 50%; top: -50px; right: -30px; }
.bcc-due-card::after { content: ''; position: absolute; width: 100px; height: 100px; background: rgba(255,255,255,0.05); border-radius: 50%; bottom: -30px; left: -20px; }
.bcc-due-label { color: rgba(255,255,255,0.80); font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 10px; }
.bcc-due-date { color: white; font-size: 30px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 8px; }
.bcc-due-sub { color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 500; }

/* Stats Row */
.bcc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.bcc-stat-card { background: white; border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 16px 10px; text-align: center; transition: all 0.25s ease; }
.bcc-stat-card:hover { border-color: var(--pink); box-shadow: 0 6px 20px rgba(247,37,133,0.10); transform: translateY(-2px); }
.bcc-stat-icon { font-size: 22px; margin-bottom: 8px; line-height: 1; }
.bcc-stat-value { font-size: 13px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; line-height: 1.2; margin-bottom: 4px; }
.bcc-stat-label { font-size: 10.5px; color: var(--text-muted); font-weight: 500; line-height: 1.3; }

/* Rate Info */
.bcc-rate-info {
    background: var(--grad-soft);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Hint text */
.bcc-hint { font-size: 11px; color: var(--text-muted); line-height: 1.5; margin-top: 8px; }

/* Export Buttons */
.bcc-export-row { display: flex; gap: 12px; }
.bcc-export-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: var(--purple);
    cursor: pointer;
    transition: all 0.25s ease;
}
.bcc-export-btn:hover { border-color: var(--pink); background: var(--grad-soft); color: var(--pink); transform: translateY(-1px); }
.bcc-export-btn svg { flex-shrink: 0; }

/* ---- Footer ---- */
.bcc-footer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 30px 24px;
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.6;
    border-top: 1px solid var(--border);
    background: #FAFAFF;
}
.bcc-footer svg { flex-shrink: 0; margin-top: 2px; color: var(--purple); }

/* ---- Mobile ---- */
@media (max-width: 600px) {
    .bcc-wrap { padding: 20px 10px; }
    .bcc-card { border-radius: var(--radius-lg); }
    .bcc-header { padding: 22px 20px; }
    .bcc-currency-bar { padding: 12px 20px; }
    .bcc-body { padding: 20px 20px 22px; gap: 20px; }
    .bcc-result { padding: 22px 20px; }
    .bcc-footer { padding: 14px 20px 20px; }
    .bcc-due-date { font-size: 22px; }
    .bcc-stats { gap: 8px; }
    .bcc-stat-value { font-size: 11px; }
    .bcc-stat-card { padding: 12px 6px; }
    .bcc-header-text h2 { font-size: 16px; }
    .bcc-export-row { flex-direction: column; }
    .bcc-radio-row { gap: 14px; }
}
