/* ============================================================
   LOAN CALCULATOR — Máy Tính Khoản Vay

   ============================================================ */

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

:root {
  --lc-orange:       #F47E20;
  --lc-orange-dark:  #d94b18;
  --lc-orange-light: #fff4f0;
  --lc-orange-mid:   #fde8df;
  --lc-dark:         #000000;
  --lc-gray:         #6b7684;
  --lc-border:       #e8eaed;
  --lc-bg:           #f8f9fa;
  --lc-white:        #ffffff;
  --lc-success:      #00a32a;
  --lc-red-row:      #fef2f0;
  --lc-radius:       12px;
  --lc-radius-sm:    8px;
  --lc-shadow:       0 4px 20px rgba(0,0,0,.08);
  --lc-shadow-lg:    0 8px 40px rgba(0,0,0,.12);
}

/* Reset */
.lc-wrapper, .lc-wrapper * {
  box-sizing: border-box;
font-family: SVN-Gilroy, sans-serif;
}

/* ── WRAPPER ── */
.lc-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.lc-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px;
  color: var(--lc-gray);
  font-size: 14px;
}

.lc-spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--lc-border);
  border-top-color: var(--lc-orange);
  border-radius: 50%;
  animation: lc-spin .7s linear infinite;
}
@keyframes lc-spin { to { transform: rotate(360deg); } }

/* ── MAIN GRID ── */


/* ── PANELS ── */



/* ── PANEL HEADER ── */
.lc-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.lc-panel-icon {
    width: 28px;
    height: 28px;
    background: var(--lc-orange-light);
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lc-orange);
    flex-shrink: 0;
    border: 1px solid var(--lc-orange);
}

.lc-left-panel > .col-inner,.lc-right-panel > .col-inner {
    border-radius: 12px;
    box-shadow: 0px 1px 60px 30px rgb(0 0 0 / 5%);
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
    background-color: #ffffff;
    padding: 15px;
}
.lc-panel-icon--orange { background: var(--lc-orange-light); }

.lc-panel-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--lc-dark);
  margin: 0;
  line-height: 1.3;
}

/* ── STEPS ── */
.lc-step {
  margin-bottom: 22px;
}

.lc-step-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--lc-orange);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 2px;
}

input#lc-amount-slider {
    height: 8px;
    background: linear-gradient(to right, #EC1C24 100%, #F47E20 100%) !important;
    margin-bottom: 0px;
}



/* ── PRODUCT GRID ── */
.lc-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.lc-product-card {
  border: 2px solid var(--lc-border);
  border-radius: var(--lc-radius-sm);
  padding: 14px 10px 12px;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
  background: var(--lc-white);
  position: relative;
  overflow: hidden;
}
.lc-product-card:hover {
  border-color: var(--lc-orange);
  background: var(--lc-orange-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(241,90,36,.15);
}
.lc-product-card.active {
  border-color: var(--lc-orange);
  background: var(--lc-orange);
}
.lc-product-card.active .lc-product-name,
.lc-product-card.active .lc-product-desc {
  color: #fff;
}
.lc-product-icon {
  font-size: 28px;
  margin-bottom: 6px;
  display: block;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
}

.lc-product-icon img {
    height: 42px;
    max-height: 42px;
}

.lc-product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--lc-dark);
  line-height: 1.3;
  margin-bottom: 3px;
}
.lc-product-desc {
  font-size: 12px;
  color: var(--lc-gray);
  line-height: 1.3;
}

/* ── AMOUNT INPUT ── */
.lc-amount-display {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--lc-border);
  border-radius: var(--lc-radius-sm);
  overflow: hidden;
  background: var(--lc-bg);
  transition: border-color .2s;
}

input#lc-amount-input {
    margin: 0px;
    box-shadow: unset;
    border: unset;
}
.lc-amount-display:focus-within { border-color: var(--lc-orange); }

.lc-amount-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--lc-dark);
  outline: none;
  cursor: default;
}

.lc-currency {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lc-dark);
  border-left: 1px solid var(--lc-border);
  background: var(--lc-white);

}

/* ── SLIDER ── */
.lc-slider-wrap {
  margin: 14px 0 6px;
  padding: 0 2px;
}

.lc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--lc-orange) var(--slider-pct, 0%), var(--lc-border) var(--slider-pct, 0%));
  border-radius: 10px;
  outline: none;
  cursor: pointer;
}
.lc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--lc-orange);
  box-shadow: 0 2px 8px rgba(241,90,36,.4);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  border: 2px solid #fff;
}
.lc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 14px rgba(241,90,36,.5);
}
.lc-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--lc-orange);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(241,90,36,.4);
}

.lc-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--lc-dark);
  font-weight: 600;
  padding: 0 2px;
}
.lc-date-input {
    margin: 0px;
    box-shadow: unset !important;
    border: unset !important;
}

/* ── DATE INPUT ── */
.lc-date-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--lc-border);
  border-radius: var(--lc-radius-sm);
  overflow: hidden;
  background: var(--lc-bg);
  padding: 0 14px;
  gap: 8px;
}
.lc-date-wrap:focus-within { border-color: var(--lc-orange); }

.lc-date-icon { color: var(--lc-gray); flex-shrink: 0; }

.lc-date-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--lc-dark);
  outline: none;
 
}

/* ── TERM BUTTONS ── */
.lc-terms-grid {
  display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px
}

.lc-term-btn{
    flex: 1;
    padding: 2px 18px;
    border: 1.5px solid var(--lc-border);
    border-radius: var(--lc-radius-sm);
    background: var(--lc-white);
    font-size: 13px;
    font-weight: 700;
    color: var(--lc-dark);
    cursor: pointer;
    transition: all .2s ease;
    margin: 0;
}
.lc-term-btn:hover {
  border-color: var(--lc-orange);
  color: var(--lc-orange);
  background: var(--lc-orange-light);
}
.lc-term-btn.active {
  background: #EC1C24;
  border-color: #EC1C24;
  color: #fff;
  box-shadow: 0 3px 10px rgba(241,90,36,.3);
}


button#calculateBtn {
    width: 100%;
    color: #fff;
    background: linear-gradient(to right, #F47E20 0%, #EC1C24 100%);
    border-radius: 10px;
}

/* ── DISCLAIMER ── */
p.lc-disclaimer {
    background-color: #FFF6F1;
    border-radius: 10px;
    font-size: 10px;
    color: #000;
    padding: 10px;
}

/* ── MONTHLY HERO ── */
.lc-monthly-hero {
  background: linear-gradient(135deg, #fff4f0 0%, #fde8df 100%);
  border-radius: var(--lc-radius);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--lc-orange-mid);
  position: relative;
  overflow: hidden;
  min-height: 90px;
}

.lc-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lc-hero-icon.col-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lc-hero-icon-img {
  width: 52px; height: 52px;
  background: #EC1C24;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(241,90,36,.4);
}

.lc-monthly-amount {
    font-size: 32px;
    font-weight: 700;
    color: #EC1C24;
    line-height: 1.1;
    letter-spacing: -.5px;
}

/* Coin decorations */

.lc-hero-decoration.col-inner img {
    height: 105px;
}
.lc-coin-1 {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  top: 0; right: 10px;
}
.lc-coin-2 {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
  bottom: 0; right: 0;
}
.lc-coin-3 {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  top: 20px; right: 44px;
}

/* ── TABLE SECTION ── */
.lc-table-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lc-table-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  margin-top: 12px;
}

.lc-table-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--lc-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lc-table-title-icon {
  color: var(--lc-orange);
  display: flex;
}

.lc-unit-note {
    font-size: 12px;
    color: #000;
    width: 88px;
    font-weight: 400;
}

span.lc-table-title-icon {
    width: 28px;
    height: 28px;
    background: var(--lc-orange-light);
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lc-orange);
    flex-shrink: 0;
    border: 1px solid var(--lc-orange);
}

.lc-table-wrap {
  border-radius: var(--lc-radius-sm);
  border: 1px solid var(--lc-border);
}

.lc-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    padding-bottom: 0px;
    margin-bottom: 0px;
    border-bottom: 0px !important;
}

.lc-schedule-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.lc-schedule-table thead th {
    background: var(--lc-orange);
    color: #fff;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .02em;
    text-transform: inherit;
    text-align: center;
}
.lc-schedule-table thead th:first-child {
  text-align: center;
}

.lc-schedule-table tbody tr {
  border-bottom: 1px solid var(--lc-border);
  transition: background .15s;
}
.lc-schedule-table tbody tr:hover {
  background: var(--lc-orange-light);
}

.lc-schedule-table tbody tr:last-child td {
  font-weight: 700;
}

.lc-schedule-table td {
    padding: 12px 14px;
    color: var(--lc-dark);
    font-size: 14px;
    text-align: center;
    font-weight: 500 !important;
}


.lc-table-empty {
  text-align: center !important;
  color: var(--lc-gray);
  padding: 40px 20px !important;
  font-style: italic;
  font-size: 13px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .lc-main {
    grid-template-columns: 1fr;
  }
  .lc-left-panel {
    border-right: none;
    border-bottom: 1px solid var(--lc-border);
  }
}

@media (max-width: 480px) {
  .lc-left-panel,
  .lc-right-panel {
    padding: 20px 16px;
  }
  .lc-monthly-amount {
    font-size: 22px;
  }
  .lc-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── ANIMATIONS ── */
@keyframes lc-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lc-main { animation: lc-fadeIn .4s ease; }

.lc-schedule-table tbody tr {
  animation: lc-fadeIn .3s ease;
}



/* ── Modal overlay ── */
.lc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
}
body.lc-modal-open { overflow: hidden; }

/* ── Modal box ── */
.lc-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px 36px;
    max-width: 532px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
    animation: lcModalIn .22s ease;
}
@keyframes lcModalIn {
    from { opacity:0; transform:translateY(16px) scale(.97); }
    to   { opacity:1; transform:translateY(0)    scale(1);   }
}

/* ── Close button ── */
.lc-modal-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color .15s, background .15s;
    margin:0px;
    min-height: unset;
}
.lc-modal-close:hover { color: #333; background: #f0f0f0; }

/* ── Modal icon ── */
.lc-modal-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
}
.lc-modal-icon--primary {
    background: #fff0ee;
    color: #EC1C24;
}
.lc-modal-icon--success {
    background: #e8f8f0;
    color: #00a32a;
}

/* ── Modal title & subtitle ── */
.lc-modal-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px;
}
.lc-modal-title span{
    color: #EC1C24;
}
.lc-modal-subtitle {
    text-align: center;
    font-size: 12px;
    color: #000;
    margin: 0 0 18px;
    line-height: 1.6;
}

#lc-modal-cf7 .wpcf7 label {
    margin-bottom: 0px;
}

/* ── Success ok button ── */
.lc-modal-btn-ok {
    display: block;
    width: 100%;
    padding: 4px 12px;
    background: linear-gradient(90deg, #EC1C24, #F47E20);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity .2s;
    margin: 0px;
}
.lc-modal-btn-ok:hover { opacity: .88; }

/* ── Success modal box ── */
.lc-modal-box--success {
    max-width: 532px;
    text-align: center;
}

/* ── Consult button ── */
.lc-consult-wrap {
    margin-top: 24px;
    text-align: center;
}
.lc-consult-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 28px;
    background: linear-gradient(90deg, #EC1C24, #F47E20);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    box-shadow: 0 4px 16px rgba(236,28,36,.25);
    margin: 0px;
}
.lc-consult-btn:hover {
    opacity: .9;
    transform: translateY(-1px);
}

/* ── CF7 form inside modal ── */
#lc-modal-cf7-form .wpcf7 { margin: 0; }
#lc-modal-cf7-form .wpcf7-form p { margin-bottom: 14px; }
#lc-modal-cf7-form input[type=text],
#lc-modal-cf7-form input[type=email],
#lc-modal-cf7-form input[type=tel],
#lc-modal-cf7-form textarea,
#lc-modal-cf7-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    height: 42px;
}

#lc-modal-cf7-form .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

#lc-modal-cf7-form .wpcf7-list-item input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 0px;
}

#lc-modal-cf7-form .wpcf7-list-item-label {
    flex: 1;
    line-height: 1.5;
    font-size: 12px;
    color: #000000;
}

#lc-modal-cf7-form label {
    font-size: 14px;
    color: #F47E20;
}

#lc-modal-cf7-form input[type=submit] {
    width: 100%;
    padding: 0px;
    background: linear-gradient(90deg, #EC1C24, #F47E20);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s;
    margin-top: 18px;
}
#lc-modal-cf7-form input[type=submit]:hover { opacity: .88; }


/* CF7 Modal Loading */
#lc-modal-cf7-form {
    position: relative; /* bắt buộc để overlay định vị đúng */
}

.lc-cf7-loading {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
    border-radius: inherit;
    z-index: 10;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Dùng flex khi hiện (fadeIn ghi đè display, nên dùng JS hoặc override) */
.lc-cf7-loading[style*="display: block"] {
    display: flex !important;
}

.lc-cf7-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: #EC1C24;
    border-radius: 50%;
    animation: lc-spin 0.7s linear infinite;
}

.lc-cf7-loading p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

@keyframes lc-spin {
    to { transform: rotate(360deg); }
}



.lc-header-page h3 {
    font-size: 48px;
    color: #EC1C24;
}

.lc-header-page h3 span {
    color: #F47E20;
}

.lc-header-page p {
    color: #000000;
    font-size: 20px;
}

.lc-header-page .is-divider.divider.clearfix {
    width: 220px !important;
    height: 6px;
    border: none;
    background: linear-gradient(to right, #EC1C24 0%, #F47E20 100%) !important;
    display: block;
    max-width: unset;
    border-radius: 99px;
}


.lc-header-page .is-divider.divider.clearfix {
    width: 220px !important;
    height: 6px;
    border: none;
    background: linear-gradient(to right, #EC1C24 0%, #F47E20 100%) !important;
    display: block;
    max-width: unset;
    border-radius: 99px;
}

/* Mobile */
@media (max-width: 767px) {
    .lc-header-page .is-divider.divider.clearfix {
        width: 120px !important;
        height: 4px;
        
    }
    
    .lc-header-page h3 {
    font-size: 32px;
    color: #EC1C24;
}


.lc-header-page p {
    color: #000000;
    font-size: 16px;
}


.lc-modal-title {
    text-align: center;
    font-size: 22px;
  
}


.lc-table-wrap { overflow: auto; }
    
    
}


.wpcf7-form .wpcf7-spinner {
    display: none !important;
    visibility: hidden !important;
}

/* Ẩn spinner loading */
.wpcf7-spinner {
    display: none !important;
}

/* Không làm mờ form khi submit */
.wpcf7 form.submitting {
    opacity: 1 !important;
}


.lc-modal-overlay .loading-spin.centered, .lc-modal-overlay .processing:before {
    display: none !important;
}
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible {
    outline: unset;
}

p.lc-consult-text {
    font-size: 13px;
    margin-top: 15px;
    font-style: italic;
}
