/* ==========================================================================
   form-styles.css — Standardized Form Controls & Interactive Engines
   Rapido InfraTel LLP & IPO Kart Web Platform
   ========================================================================== */

/* Form Elements */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label .hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--fiber-400);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
  background: rgba(15, 23, 42, 0.95);
}

.form-select option {
  background: #0b1120;
  color: #ffffff;
}

/* Range Slider Styling */
.range-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  transition: background var(--transition-fast);
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fiber-500);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.6);
  border: 2px solid #ffffff;
  transition: transform var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Interactive Calculator Container */
.calculator-card {
  background: rgba(11, 17, 32, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.calc-result-panel {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(234, 88, 12, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.calc-result-panel::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.result-metric {
  display: flex;
  flex-direction: column;
}

.result-metric .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.result-metric .value {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--fiber-400);
  line-height: 1.1;
  margin-top: 0.3rem;
}

.result-metric .value.green {
  color: var(--emerald-400);
}

.result-submetrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.submetric-box .sub-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.submetric-box .sub-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0.2rem;
}

.odds-comparison-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  margin-top: 0.5rem;
}

.odds-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--fiber-500), var(--emerald-500));
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

/* Tax Invoice Modal / Receipt Box */
.invoice-card {
  background: #ffffff;
  color: #0f172a;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--font-sans);
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.invoice-entity-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.invoice-meta-text {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
  margin-top: 0.25rem;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.85rem;
}

.invoice-table th {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid #cbd5e1;
  color: #475569;
  font-weight: 700;
}

.invoice-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.invoice-footer-notice {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.5;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 1.5rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
