/**
 * 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: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07), 0 4px 14px rgba(15, 23, 42, 0.04);
  padding: 26px 24px 22px;
  margin: 18px 0 26px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gsh-gray-900);
  overflow: hidden;
  position: relative;
}

.gsh-calc-box::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gsh-gold) 0%, var(--gsh-gold) 30%, rgba(197, 168, 128, 0.2) 100%);
}

.gsh-emi-calc-wrapper {
  border-color: rgba(11, 25, 44, 0.2);
  background: linear-gradient(150deg, #fff 0%, #f6f8fc 60%, #fbf8f1 100%);
  box-shadow: 0 20px 44px rgba(11, 25, 44, 0.12), 0 4px 14px rgba(197, 168, 128, 0.12);
}

.gsh-emi-calc-wrapper .gsh-calc-form {
  border-color: rgba(11, 25, 44, 0.16);
  background: linear-gradient(145deg, #f4f7fb 0%, #fff 72%);
  box-shadow: inset 0 1px 0 #fff;
}

.gsh-emi-calc-wrapper .gsh-calc-input,
.gsh-emi-calc-wrapper .gsh-calc-select {
  border-color: #aebaca;
  box-shadow: 0 1px 2px rgba(11, 25, 44, 0.04);
}

.gsh-calc-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  padding-bottom: 18px;
}

.gsh-calc-icon {
  background: linear-gradient(135deg, var(--gsh-navy) 0%, #1d3557 100%);
  color: var(--gsh-gold);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 18px rgba(11, 25, 44, 0.15);
}

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

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

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

/* Forms */
.gsh-calc-form {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(255, 255, 255, 0.94) 100%);
  padding: 20px 18px 18px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  margin-bottom: 24px;
}

.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: 7px;
}

.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: 700;
  color: var(--gsh-navy);
}

.gsh-calc-input,
.gsh-calc-select {
  height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 10px;
  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: rgba(197, 168, 128, 0.9);
  box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.12);
}

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

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

.gsh-calc-btn {
  background: linear-gradient(135deg, var(--gsh-navy) 0%, #1f3f66 100%);
  color: #fff;
  border: none;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-shadow: 0 12px 18px rgba(11, 25, 44, 0.14);
}

.gsh-calc-btn:hover {
  background: linear-gradient(135deg, #182e46 0%, var(--gsh-navy-light) 100%);
  transform: translateY(-1px);
}

.gsh-calc-btn-reset {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  color: var(--gsh-gray-600);
  border: 1px solid rgba(148, 163, 184, 0.42);
  height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

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

.gsh-calc-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
  gap: 12px;
  margin-top: 15px;
}

.gsh-calc-actions .gsh-calc-btn-reset {
  min-width: 120px;
}

.gsh-roi-highlight-box {
  background: linear-gradient(135deg, rgba(11, 25, 44, 1) 0%, rgba(30, 62, 98, 1) 100%);
  border-radius: 18px;
  padding: 22px 20px;
  color: #fff;
  box-shadow: 0 18px 36px rgba(11, 25, 44, 0.18);
  border: 1px solid rgba(197, 168, 128, 0.35);
}

.gsh-roi-highlight-box .roi-title {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.gsh-roi-highlight-box .roi-amount {
  display: block;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}

.gsh-roi-highlight-box .roi-sub {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

/* 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(220px, 1fr));
  gap: 15px;
}

.gsh-res-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  padding: 18px 16px;
  transition: transform 0.2s;
}

.gsh-res-card.highlight-card {
  border-color: rgba(197, 168, 128, 0.8);
  background: linear-gradient(180deg, #fffaf2 0%, #fff 100%);
  border-left: 4px solid var(--gsh-gold);
}

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

.res-card-val {
  font-size: 18px;
  font-weight: 800;
  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: linear-gradient(135deg, #0b192c 0%, #16324f 100%);
  color: #fff;
  border-radius: 16px;
  padding: 24px 20px 22px;
  text-align: center;
  margin-bottom: 20px;
  border: 1px solid rgba(197, 168, 128, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

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

.emi-amount {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  margin: 8px 0;
  color: #fff;
  letter-spacing: -0.03em;
}

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

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

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

.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: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.bar-fill-principal {
  background: linear-gradient(90deg, #0b192c 0%, #1d3557 100%);
  transition: width 0.4s ease;
}

.bar-fill-interest {
  background: linear-gradient(90deg, var(--gsh-gold) 0%, #d4b38a 100%);
  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;
}

.gsh-calculators-page-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.gsh-section-kicker {
  display: inline-block;
  background: rgba(197, 168, 128, 0.12);
  color: var(--gsh-gold-hover);
  border: 1px solid rgba(197, 168, 128, 0.3);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.gsh-calculators-page-header h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.2;
  color: var(--gsh-navy);
  letter-spacing: -0.03em;
}

.gsh-calculators-page-header p {
  margin: 0;
  color: var(--gsh-gray-600);
  font-size: 15px;
  line-height: 1.7;
}

.gsh-calculator-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 30px;
}

.gsh-calculator-feature-card {
  display: block;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 18px;
  padding: 22px 18px;
  color: var(--gsh-navy);
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gsh-calculator-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  border-color: rgba(197, 168, 128, 0.48);
}

.gsh-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 24px;
  color: #fff;
}

.gsh-feature-land .gsh-feature-icon {
  background: linear-gradient(135deg, #0b192c 0%, #1d3557 100%);
}

.gsh-feature-dimension .gsh-feature-icon {
  background: linear-gradient(135deg, #1f3f66 0%, #2b5f8d 100%);
}

.gsh-feature-emi .gsh-feature-icon {
  background: linear-gradient(135deg, #b88d56 0%, #d6b179 100%);
}

.gsh-calculator-feature-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.gsh-calculator-feature-card p {
  margin: 0;
  color: var(--gsh-gray-600);
  font-size: 14px;
  line-height: 1.6;
}

.gsh-tools-directory-wrap {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 22px;
  padding: 22px 18px 18px;
  margin: 0 0 28px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
}

.gsh-tools-directory-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-bottom: 14px;
}

.gsh-tools-directory-header h3 {
  margin: 0;
  color: var(--gsh-navy);
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: -0.02em;
}

.gsh-tools-directory-header span {
  color: var(--gsh-gray-600);
  font-size: 13px;
  font-weight: 600;
}

.gsh-tools-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gsh-tool-card {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 16px 14px 14px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gsh-tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 168, 128, 0.46);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.06);
}

.gsh-tool-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gsh-navy) 0%, #1d3557 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.gsh-tool-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--gsh-navy);
}

.gsh-tool-card p {
  margin: 0;
  color: var(--gsh-gray-600);
  font-size: 12.5px;
  line-height: 1.6;
}

.gsh-tool-live {
  position: relative;
}

.gsh-tool-live::after {
  content: "Live";
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(16, 185, 129, 0.12);
  color: #0f766e;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 7px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gsh-calculator-panel {
  margin-bottom: 28px;
}

@media (max-width: 1024px) {
  .gsh-tools-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .gsh-tools-directory-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .gsh-tools-directory-grid {
    grid-template-columns: 1fr;
  }
}

.gsh-panel-emi {
  position: relative;
}

.gsh-panel-emi .gsh-calc-box {
  border-color: rgba(197, 168, 128, 0.38);
  box-shadow: 0 18px 38px rgba(197, 168, 128, 0.12), 0 4px 14px rgba(15, 23, 42, 0.04);
}

@media (max-width: 1024px) {
  .gsh-calc-box {
    padding: 22px 18px 18px;
    border-radius: 18px;
  }

  .gsh-calc-header {
    gap: 12px;
  }

  .gsh-calculator-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .gsh-calculator-feature-grid {
    grid-template-columns: 1fr;
  }

  .gsh-calc-box {
    margin: 14px 0 20px;
    padding: 18px 14px 16px;
    border-radius: 16px;
  }

  .gsh-calc-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 16px;
  }

  .gsh-calc-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .gsh-calc-title {
    font-size: 19px;
  }

  .gsh-calc-form {
    padding: 14px 12px;
  }

  .gsh-form-grid-3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gsh-emi-bar-labels {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .gsh-calc-btn,
  .gsh-calc-btn-reset {
    width: 100%;
  }

  .gsh-calc-actions {
    grid-template-columns: 1fr;
  }

  .gsh-calc-actions .gsh-calc-btn-reset {
    min-width: 0;
  }

  .gsh-calculators-page-header {
    margin-bottom: 22px;
  }

  .gsh-calculators-page-header h2 {
    font-size: 1.9rem;
  }
}

@media (max-width: 560px) {
  .gsh-calc-box {
    padding: 16px 12px 14px;
    border-radius: 14px;
  }

  .gsh-calc-title {
    font-size: 17px;
    line-height: 1.35;
  }

  .gsh-calc-desc {
    font-size: 13px;
  }

  .gsh-calc-input,
  .gsh-calc-select,
  .gsh-calc-btn,
  .gsh-calc-btn-reset {
    height: 42px;
  }

  .gsh-result-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gsh-res-card {
    padding: 14px 12px;
  }

  .emi-amount {
    font-size: 2rem;
  }

  .gsh-calc-btn,
  .gsh-calc-btn-reset {
    font-size: 14px;
  }

  .gsh-calculator-feature-card {
    padding: 18px 14px;
  }

  .gsh-calculator-feature-card h3 {
    font-size: 18px;
  }
}
