/**
 * GSH Developers Real Estate Marketplace
 * Calculators Stylesheet: Land Area, Dimensions & Home Loan EMI
 */

:root {
  --gsh-navy: #0B192C;
  --gsh-navy-light: #1E3E62;
  --gsh-gold: #C5A880;
  --gsh-gold-hover: #b39368;
  --gsh-white: #FFFFFF;
  --gsh-gray-50: #F8FAFC;
  --gsh-gray-100: #F1F5F9;
  --gsh-gray-200: #E2E8F0;
  --gsh-gray-600: #64748B;
  --gsh-gray-900: #0F172A;
  --gsh-radius: 10px;
  --gsh-shadow: 0 4px 20px -2px rgba(11, 25, 44, 0.08);
}

.gsh-calc-box {
  background: var(--gsh-white);
  border-radius: var(--gsh-radius);
  border: 1px solid var(--gsh-gray-200);
  box-shadow: var(--gsh-shadow);
  padding: 30px;
  margin: 30px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gsh-gray-900);
}

.gsh-calc-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--gsh-gray-200);
  padding-bottom: 20px;
}

.gsh-calc-icon {
  background: var(--gsh-navy);
  color: var(--gsh-gold);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gsh-calc-icon .dashicons {
  font-size: 26px;
  width: 26px;
  height: 26px;
}

.gsh-calc-title {
  margin: 0 0 6px 0;
  color: var(--gsh-navy);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gsh-calc-desc {
  margin: 0;
  color: var(--gsh-gray-600);
  font-size: 14px;
  line-height: 1.5;
}

/* Forms */
.gsh-calc-form {
  background: var(--gsh-gray-50);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--gsh-gray-200);
  margin-bottom: 25px;
}

.gsh-form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.gsh-form-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.gsh-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gsh-form-group.flex-1 { flex: 1; }
.gsh-form-group.flex-2 { flex: 2; min-width: 200px; }

.gsh-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gsh-navy);
}

.gsh-calc-input,
.gsh-calc-select {
  height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--gsh-gray-200);
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
  color: var(--gsh-gray-900);
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.gsh-calc-input:focus,
.gsh-calc-select:focus {
  outline: none;
  border-color: var(--gsh-navy);
  box-shadow: 0 0 0 3px rgba(11, 25, 44, 0.1);
}

.input-hint-words {
  font-size: 12px;
  font-weight: 600;
  color: var(--gsh-gold);
}

.gsh-input-group {
  display: flex;
  gap: 8px;
}

.gsh-calc-btn {
  background: var(--gsh-navy);
  color: #fff;
  border: none;
  height: 44px;
  padding: 0 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.gsh-calc-btn:hover {
  background: var(--gsh-navy-light);
  transform: translateY(-1px);
}

.gsh-calc-btn-reset {
  background: #fff;
  color: var(--gsh-gray-600);
  border: 1px solid var(--gsh-gray-200);
  height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.gsh-calc-btn-reset:hover {
  background: var(--gsh-gray-100);
  color: var(--gsh-navy);
}

/* Results Section */
.gsh-result-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--gsh-navy);
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gsh-result-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
}

.gsh-res-card {
  background: #fff;
  border: 1px solid var(--gsh-gray-200);
  border-radius: 8px;
  padding: 18px;
  transition: transform 0.2s;
}

.gsh-res-card.highlight-card {
  border-color: var(--gsh-gold);
  background: #fffcf7;
  border-left: 4px solid var(--gsh-gold);
}

.res-card-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--gsh-gray-600);
  margin-bottom: 8px;
}

.res-card-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--gsh-navy);
  line-height: 1.3;
}

.res-card-sub {
  font-size: 13px;
  color: var(--gsh-gray-600);
  margin-top: 6px;
}

.res-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

/* Dimension Formula Banner */
.gsh-dim-formula-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #166534;
}

.formula-icon {
  background: #166534;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.formula-text small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* EMI Specific */
.gsh-emi-highlight-box {
  background: var(--gsh-navy);
  color: #fff;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.emi-title {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gsh-gold);
  font-weight: 600;
}

.emi-amount {
  font-size: 38px;
  font-weight: 800;
  margin: 6px 0;
  color: #fff;
  letter-spacing: -0.02em;
}

.emi-sub {
  font-size: 13px;
  color: #94a3b8;
}

.gsh-emi-bar-container {
  margin: 20px 0;
}

.gsh-emi-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

.bar-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
}

.dot-principal { background: var(--gsh-navy); }
.dot-interest { background: var(--gsh-gold); }

.gsh-progress-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--gsh-gray-200);
}

.bar-fill-principal {
  background: var(--gsh-navy);
  transition: width 0.4s ease;
}

.bar-fill-interest {
  background: var(--gsh-gold);
  transition: width 0.4s ease;
}

.gsh-calc-footnote {
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--gsh-gray-100);
  border-radius: 6px;
  font-size: 12px;
  color: var(--gsh-gray-600);
  line-height: 1.5;
}
