/* ===== Calculator Card Styles ===== */
.calc-card {
    /* max-width: 520px; */
    margin: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(6, 22, 58, 0.10);
    overflow: hidden;
}
.calc-card.center {
    margin: 0 auto;
}
.calc-header {
    background: linear-gradient(135deg, #06163a, #0f2a6e);
    color: #fff;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.calc-header i {
    font-size: 26px;
    color: #ffa500;
}
.calc-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.calc-body {
    padding: 20px 24px 24px;
}
.calc-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eef0f4;
    padding: 10px 0;
}
.calc-row:last-child {
    border-bottom: none;
}
.calc-label {
    flex: 0 0 130px;
    font-size: 14px;
    color: #444;
    font-weight: 500;
}
.calc-cur {
    flex: 0 0 30px;
    font-size: 15px;
    font-weight: 700;
    color: #06163a;
    text-align: center;
}
.calc-val {
    flex: 1;
    text-align: right;
}
.calc-val input {
    width: 100%;
    text-align: right;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 15px;
    font-family: 'Segoe UI', Arial, sans-serif;
    outline: none;
    background: #fafbfc;
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.calc-val input:focus {
    border-color: #06163a;
    box-shadow: 0 0 0 2px rgba(6, 22, 58, 0.12);
    background: #fff;
}
.calc-val input[readonly] {
    background: #f4f6fb;
    border-color: #e0e3ea;
    font-weight: 600;
    color: #06163a;
    cursor: default;
}
.calc-row.total-inr .calc-label {
    font-weight: 700;
    color: #06163a;
}
.calc-row.total-inr .calc-val input {
    font-weight: 700;
    color: #06163a;
    font-size: 16px;
}
.calc-row.gross-premium .calc-label {
    font-weight: 700;
    color: #06163a;
    font-size: 15px;
}
.calc-row.gross-premium .calc-val input {
    font-weight: 700;
    color: #c0392b;
    font-size: 17px;
    background: #fef5f3;
    border-color: #f5c6b8;
}
.calc-gst-group {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}
.calc-gst-group input#gstPercent {
    width: 52px;
    text-align: center;
    padding: 8px 4px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #fafbfc;
    font-family: 'Segoe UI', Arial, sans-serif;
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.calc-gst-group input#gstPercent:focus {
    border-color: #06163a;
    box-shadow: 0 0 0 2px rgba(6, 22, 58, 0.12);
    background: #fff;
}
.calc-gst-group .gst-sep {
    color: #ccc;
    font-size: 18px;
    font-weight: 300;
}
.calc-gst-group input#gstAmount {
    flex: 1;
    text-align: right;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 15px;
    font-family: 'Segoe UI', Arial, sans-serif;
    outline: none;
    background: #fafbfc;
    font-weight: 600;
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.calc-gst-group input#gstAmount:focus {
    border-color: #06163a;
    box-shadow: 0 0 0 2px rgba(6, 22, 58, 0.12);
    background: #fff;
}
.calc-divider {
    height: 1px;
    background: linear-gradient(to right, #e0e3ea, transparent);
    margin: 6px 0 10px;
}
.btn-area {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eef0f4;
}
.btn-area button {
    padding: 10px 28px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Segoe UI', Arial, sans-serif;
}
.btn-calc {
    background: linear-gradient(135deg, #06163a, #0f2a6e);
    color: #fff;
}
.btn-calc:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 22, 58, 0.25);
}
.btn-reset {
    background: #e9ecf2;
    color: #444;
}
.btn-reset:hover {
    background: #dde1e9;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}
@media (max-width: 480px) {
    .calc-label { flex: 0 0 100px; font-size: 13px; }
    .calc-body { padding: 14px 14px 18px; }
    .calc-header { padding: 14px 16px; }
}

/* ===== Popup Modal Styles ===== */
.calc-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}
.calc-overlay .calc-card {
    overflow: visible;
}
.calc-modal {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    max-width: 600px;
    width: 94%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.calc-modal h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #06163a;
}
.calc-modal p {
    margin: 0 0 20px;
    font-size: 14px;
    color: #777;
}
.calc-modal .form-group {
    margin-bottom: 14px;
}
.calc-modal .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}
.calc-modal .form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    background: #fafbfc;
    transition: border 0.2s, box-shadow 0.2s;
}
.calc-modal .form-group input:focus {
    border-color: #06163a;
    box-shadow: 0 0 0 2px rgba(6,22,58,0.12);
    background: #fff;
}
.calc-modal .btn-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #06163a, #0f2a6e);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 6px;
}
.calc-modal .close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    background: none;
    border: none;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
    font-family: Arial, sans-serif;
}
.calc-modal .close-btn:hover {
    color: #333;
}
.calc-modal .btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(6,22,58,0.3);
}

/* ===== Calculator Popup (load) styles ===== */
.calc-popup-modal {
    max-width: 540px !important;
    padding: 0 !important;
    border-radius: 20px !important;
    overflow: hidden;
    max-height: 90vh;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.calc-popup-top {
    background: linear-gradient(135deg, #0a1f4a, #1a3f8a);
    padding: 36px 32px 24px;
    text-align: center;
    position: relative;
}
.calc-popup-top .close-btn {
    color: rgba(255,255,255,0.6);
    top: 14px;
    right: 18px;
    font-size: 30px;
}
.calc-popup-top .close-btn:hover {
    color: #fff;
}
.calc-popup-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 28px;
    color: #ffa500;
    border: 2px solid rgba(255,255,255,0.15);
}
.calc-popup-top h2 {
    color: #fff;
    font-size: 24px;
    margin: 0 0 6px;
}
.calc-popup-top p {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    margin: 0;
}
.calc-popup-body {
    padding: 20px 28px 28px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}
.calc-popup-body .calc-card {
    box-shadow: none;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    overflow: visible;
}

/* ===== Disabled calculator overlay ===== */
.calc-wrapper {
    position: relative;
}
.calc-locked {
    position: relative;
    pointer-events: none;
    opacity: 0.5;
}
.calc-lock-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
    cursor: pointer;
}
