/* =====================
   Header
   ===================== */
.site-header {
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  padding: 0;
  box-shadow: 0 4px 20px rgba(200,10,50,0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}
h1{
	font-size:45px !important;
	line-height:10px !important;
}

.header-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 24px !important;
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.logo-text strong {
  font-weight: 700;
}

/* =====================
   Main Layout
   ===================== */
.main-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* =====================
   Card
   ===================== */
.card {
  background: #ffffff !important;
  border: 1px solid #f0d0d8 !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 32px rgba(232,25,75,0.12);
  overflow: hidden;
}

.card-header {
  padding: 32px 36px 24px;
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  border-bottom: 2px solid #f0d0d8;
}

.card-title {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: whitesmoke !important;
  line-height: 1.2;
  margin-bottom: 10px;
}

.card-subtitle {
  font-size: 0.95rem;
  color: #a9a9bd;
  line-height: 1.5;
}

.card-subtitle strong {
  color: #eaeaea;
}

/* =====================
   Divider
   ===================== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #f0d0d8, transparent);
  margin: 0 36px;
}

/* =====================
   Field Rows
   ===================== */
.field-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 36px !important;
  transition: background 0.2s ease;
}

.field-row:hover {
  background: #fffafc;
}

.field-info {
  flex: 1;
  min-width: 0;
}

.field-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  margin-bottom: 6px;
  line-height: 1.3;
}

.field-desc {
  font-size: 0.875rem;
  color: #4a4a6a !important;
  margin-bottom: 8px;
  line-height: 1.5;
}

.field-desc.accent-text {
  color: #e8194b;
  font-weight: 500;
}

.field-list {
  padding-left: 20px;
  font-size: 0.85rem;
  color: #e8194b;
  font-weight: 500;
  line-height: 1.8;
}

.field-list li::marker {
  color: #ff5c85;
}

/* =====================
   Input Area
   ===================== */
.field-input-wrap {
  flex-shrink: 0;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.input-label {
  font-size: 0.75rem !important;
  font-weight: 600;
  color: #8888aa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-self: flex-start;
}

.input-group {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid #f0d0d8 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.input-group:focus-within {
  border-color: #e8194b !important;
  box-shadow: 0 0 0 3px rgba(232, 25, 75, 0.12) !important;
}

.input-prefix {
  padding: 0 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e8194b !important;
  background: #fff0f4 !important;
  border-right: 2px solid #f0d0d8 !important;
  height: 100%;
  display: flex;
  align-items: center;
  align-self: stretch;
  user-select: none;
  transition: background 0.2s;
}

.input-group:focus-within .input-prefix {
  background: #ffd6e2;
  border-right-color: #ff5c85;
}

.input-group.no-prefix .field-input {
  padding-left: 14px;
}

.field-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 11px 12px !important;
  font-size: 0.95rem !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1a2e !important;
  background: transparent;
  width: 100%;
  font-weight: 500;
}

.field-input::placeholder {
  color: #8888aa;
  font-weight: 400;
}

/* Remove number input arrows */
.field-input::-webkit-outer-spin-button,
.field-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.field-input[type=number] {
  -moz-appearance: textfield;
}

/* =====================
   Calculated State
   ===================== */
.calculated-badge {
  display: none;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #e8194b, #ff5c85) !important;
  color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px !important;
  border-radius: 20px;
  align-self: flex-end;
}

.calculated-badge.visible {
  display: flex;
}

.field-row.is-calculated .input-group {
  border-color: #ff5c85;
  background: #fff0f4;
}

.field-row.is-calculated .field-input {
  color: #c0123c;
  font-weight: 700;
}

/* =====================
   Error Message
   ===================== */
.error-msg {
  display: none;
  margin: 0 36px 4px;
  padding: 12px 16px !important;
  background: #fff0f0 !important;
  border: 1px solid #ffcccc !important;
  border-left: 4px solid #e8194b !important;
  border-radius: 8px !important;
  font-size: 0.875rem;
  color: #c0123c;
  font-weight: 500;
}

.error-msg.visible {
  display: block;
}

/* =====================
   Result Box
   ===================== */
.result-box {
  display: none;
  margin: 0 36px 4px;
  padding: 16px 20px !important;
  background: linear-gradient(135deg, #fff0f4, #fff0f6) !important;
  border: 1px solid #ff8fab !important;
  border-left: 4px solid #e8194b !important;
  border-radius: 8px !important;
  font-size: 0.9rem;
  color: #c0123c;
  font-weight: 500;
  line-height: 1.7;
}

.result-box.visible {
  display: block;
}

.result-box strong {
  color: #e8194b;
  font-size: 1.05rem;
}

/* =====================
   Actions
   ===================== */
.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 36px 28px;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px !important;
  font-size: 0.95rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  border: none !important;
  border-radius: 50px !important;
  cursor: pointer;
  transition: all 0.22s ease;
  letter-spacing: 0.01em;
  outline: none !important;
}

.btn-arrow {
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(232, 25, 75, 0.35);
}

.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 6px 24px rgba(232, 25, 75, 0.45);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(232, 25, 75, 0.3);
}

.btn-secondary {
  background: #ffffff !important;
  color: #4a4a6a !important;
  border: 2px solid #f0d0d8 !important;
}

.btn-secondary:hover {
  border-color: #ff5c85;
  color: #e8194b;
  background: #fff0f4;
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 640px) {
  .main-content {
    padding: 0px;
  }
	h1{
		font-size:33px !important
	}

  .card-header {
    padding: 24px 20px 18px;
  }

  .card-title {
    font-size: 1.3rem;
  }

  .field-row {
    flex-direction: column;
    padding: 22px 20px;
    gap: 16px;
  }

  .field-input-wrap {
    width: 100%;
    align-items: flex-start;
  }

  .divider {
    margin: 0 20px;
  }

  .actions {
    padding: 20px 20px 24px;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .error-msg,
  .result-box {
    margin: 0 20px 4px;
  }
}

@media (max-width: 400px) {
  .card-title {
    font-size: 1.15rem;
  }

  .field-title {
    font-size: 1rem;
  }
}
