.lh-calc {
  --bg: #ffffff;
  --card: #f8f9fa;
  --card-soft: #ffffff;
  --txt: #1a1a1a;
  --sub: #666666;
  --acc: #1a1a1a;
  --acc-soft: rgba(26, 26, 26, 0.1);
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin: 40px 0;
  padding: 40px 30px;
  border-radius: 8px;
  background: var(--card);
  color: var(--txt);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  position: relative;
}

.lh-calc h3 {
  margin: 0 0 8px 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 24px;
  color: var(--txt);
}

.lh-subtitle {
  margin-bottom: 24px;
  font-size: 15px;
  color: var(--sub);
  line-height: 1.6;
}

.lh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  position: relative;
}

.lh-grid label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: var(--sub);
  font-weight: 500;
}

.lh-grid input,
.lh-grid select {
  margin-top: 8px;
  background: var(--card-soft);
  color: var(--txt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.lh-grid input:focus,
.lh-grid select:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-soft);
}

.lh-grid select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.lh-row-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lh-row-inline input {
  flex: 0 0 100px;
}

.lh-hint {
  font-size: 12px;
  color: #999;
}

.lh-result {
  position: relative;
  margin-top: 32px;
  padding: 24px;
  border-top: 2px solid var(--border);
  background: #fff;
  border-radius: 8px;
}

.lh-line {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.lh-line strong {
  color: var(--acc);
  font-size: 28px;
}

.lh-breakdown {
  margin-top: 8px;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.6;
}

.lh-note {
  margin-top: 16px;
  font-size: 12px;
  color: #999;
  font-style: italic;
}

@media (max-width:768px) {
  .lh-calc {
    padding: 24px 20px;
    margin: 24px 0;
  }

  .lh-grid {
    grid-template-columns: 1fr;
  }

  .lh-line strong {
    font-size: 24px;
  }
}

.lh-contact {
  position: relative;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

.lh-contact-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--txt);
}

.lh-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.lh-contact-grid label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: var(--sub);
  font-weight: 500;
}

.lh-contact-grid input,
.lh-contact-grid select,
.lh-contact-grid textarea {
  margin-top: 8px;
  background: var(--card-soft);
  color: var(--txt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  resize: vertical;
  min-height: 44px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.lh-contact-grid textarea {
  min-height: 100px;
}

.lh-contact-grid input:focus,
.lh-contact-grid select:focus,
.lh-contact-grid textarea:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-soft);
}

.lh-contact-grid select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.lh-contact-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.lh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  background: var(--acc);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.lh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: #333;
}

.lh-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.lh-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lh-status {
  font-size: 14px;
  color: var(--sub);
  line-height: 1.5;
}

@media (max-width:768px) {
  .lh-contact-grid {
    grid-template-columns: 1fr;
  }

  .lh-btn {
    width: 100%;
  }
}