#estimator { background: var(--cream); padding: 90px 0 80px; position: relative; overflow: hidden; }
#estimator::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,150,46,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.section-tag { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 14px; }
.section-tag .line { width: 36px; height: 1px; background: var(--gold); }
.section-tag span { font-size: 10px; font-weight: 600; letter-spacing: 3.5px; text-transform: uppercase; color: var(--gold); }

select, input[type=number], input[type=text], input[type=tel], input[type=email], input[type=date] {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid rgba(184,150,46,0.2); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--es);
  background: #fff; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
select:focus, input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,150,46,0.1); }

.est-card {
  background: #fff; padding: 28px 24px;
  border: 1.5px solid rgba(184,150,46,0.1);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative; overflow: hidden;
}
.est-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.est-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(26,26,46,0.1); border-color: rgba(184,150,46,0.3); }
.est-card:hover::before { transform: scaleX(1); }
.est-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--gold-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }

.btn-gold {
  background: var(--gold); color: #fff; border: none; border-radius: 8px;
  padding: 11px 20px; font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-gold:hover { background: var(--navy); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26,26,46,0.2); }
.btn-gold:active { transform: translateY(0); }
.btn-gold:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.btn-outline-gold {
  background: transparent; color: var(--gold); border: 1.5px solid var(--gold);
  border-radius: 8px; padding: 9px 14px; font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.btn-outline-gold:hover { background: var(--gold); color: #fff; }

.trust-badge {
  display: flex; align-items: center; gap: 8px; padding: 10px 18px;
  background: #fff; border-radius: 100px; border: 1px solid rgba(184,150,46,0.15);
  font-size: 12px; font-weight: 500; color: var(--es); box-shadow: 0 2px 10px rgba(26,26,46,0.05);
}

/* MODAL */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(13,27,42,0.55);
  z-index: 9000; display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-backdrop.open { display: flex; animation: fadeIn 0.25s ease; }
.modal-box {
  background: #fff; width: 100%; max-width: 580px; margin: 16px;
  border-radius: 18px; max-height: 90vh; overflow-y: auto;
  position: relative; animation: slideUp 0.3s cubic-bezier(.4,0,.2,1);
}
.modal-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  border-radius: 18px 18px 0 0;
}
.modal-header { padding: 28px 30px 20px; border-bottom: 1px solid rgba(184,150,46,0.12); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 26px 30px 30px; }
.modal-close {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid #eee;
  background: #fff; font-size: 18px; color: var(--eslt); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.modal-close:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* SUCCESS */
.success-box {
  background: #fff; width: 100%; max-width: 420px; margin: 16px;
  border-radius: 18px; padding: 44px 36px; text-align: center;
  animation: slideUp 0.3s cubic-bezier(.4,0,.2,1);
}
.success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #d4edda, #a8d5b5);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}

.banner-img-wrap { border-radius: 16px; overflow: hidden; position: relative; margin-top: 48px; aspect-ratio: 16/6; }
.banner-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.banner-badge {
  position: absolute; bottom: 24px; right: 24px;
  background: rgba(13,27,42,0.82); backdrop-filter: blur(6px);
  border: 1px solid rgba(184,150,46,0.4); border-radius: 12px; padding: 14px 20px; text-align: center;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loaderSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

label.field-label { display: block; font-size: 11px; font-weight: 600; color: var(--es); margin-bottom: 6px; letter-spacing: 0.3px; }
.form-row { display: grid; gap: 14px; }
@media(min-width:560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--es); cursor: pointer; }
.check-item input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }
.radio-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--es); cursor: pointer; }
.radio-item input[type=radio] { accent-color: var(--gold); }
textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid rgba(184,150,46,0.2); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--es);
  outline: none; resize: vertical; min-height: 80px; transition: border-color 0.2s;
}
textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,150,46,0.1); }
hr.divider { border: none; border-top: 1px solid rgba(184,150,46,0.12); margin: 18px 0; }
.section-note { background: var(--gold-pale); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; padding: 10px 14px; font-size: 12px; color: var(--eslt); }

/* FIELD VALIDATION */
.field-err {
  display: block; font-size: 11px; color: #c0392b; margin-top: 5px;
  min-height: 16px; opacity: 0; transform: translateY(-3px); font-weight: 500;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.field-err.show { opacity: 1; transform: translateY(0); }
input.invalid { border-color: #e74c3c !important; box-shadow: 0 0 0 3px rgba(231,76,60,0.12) !important; }

/* GLOBAL LOADER (overlay on modal-body) */
#globalLoader {
  display: none; position: absolute; inset: 0;
  background: rgba(255,255,255,0.96); z-index: 20;
  border-radius: 0 0 18px 18px;
  flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
#globalLoader.active { display: flex; }

/* BEDROOM loader (inside form wrap) */
#br_loader {
  display: none; position: absolute; inset: 0;
  background: rgba(255,255,255,0.96); z-index: 10; border-radius: 12px;
  flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
#br_loader.active { display: flex; }

@media(max-width:640px) { #estimator { padding: 60px 0; } }
@media(max-width:860px) { #cardGrid { grid-template-columns: 1fr 1fr !important; } }
@media(max-width:520px) {
  #cardGrid { grid-template-columns: 1fr !important; }
  .px-wrap { padding-left: 18px !important; padding-right: 18px !important; }
  .modal-body { padding: 18px !important; }
  .modal-header { padding: 20px 18px 16px !important; }
}