/* ============================================================
   LoanSpace.ai — Calculator Lender Connect Form
   Shared styles for the lender form on calculator pages
   ============================================================ */

.calc-lender-section {
  text-align: center;
  padding: 40px 36px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 1px solid rgba(79, 70, 229, 0.12);
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  margin-bottom: 24px;
}

.calc-lender-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #818cf8, #10b981);
}

.calc-lender-header {
  margin-bottom: 28px;
}

.calc-lender-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.calc-lender-header h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1e293b;
}

.calc-lender-header p {
  color: #64748b;
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.calc-lender-form {
  max-width: 560px;
  margin: 0 auto;
}

.calc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.calc-form-group {
  text-align: left;
}

.calc-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.calc-form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
  box-sizing: border-box;
}

.calc-form-group input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.calc-lender-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  margin-top: 8px;
  letter-spacing: 0.2px;
}

.calc-lender-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
}

.calc-lender-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.calc-lender-disclaimer {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 14px;
  margin-bottom: 0;
}

.calc-lender-skip {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 12px;
  font-family: inherit;
  transition: 0.3s;
  margin-top: 8px;
}

.calc-lender-skip:hover {
  color: #4f46e5;
}

.calc-lender-confirmed {
  text-align: center;
  padding: 40px;
  margin-top: 32px;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

@media (max-width: 640px) {
  .calc-lender-section {
    padding: 28px 16px;
  }

  .calc-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .calc-lender-header h3 {
    font-size: 20px;
  }
}
