/**
 * M4P Enrolment Manager - Business Signup Styles
 *
 * @package M4P_Enrolment_Manager
 */

/* ===========================
   Business Signup Wrapper
   =========================== */

.m4p-business-signup-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ===========================
   Pricing Section
   =========================== */

.m4p-pricing-section {
  margin-bottom: 50px;
}

.m4p-pricing-section h2 {
  text-align: center;
  font-size: 32px;
  color: #1e3a5f;
  margin-bottom: 15px;
}

.m4p-pricing-intro {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
}

/* ===========================
   Pricing Tiers Grid
   =========================== */

.m4p-pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.m4p-pricing-tier {
  background: #ffffff;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.m4p-pricing-tier:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.m4p-pricing-tier.m4p-tier-popular {
  border-color: #4a90e2;
  background: #f8fbff;
}

.m4p-pricing-tier.m4p-tier-best {
  border-color: #48bb78;
  background: #f0fff4;
}

/* Tier Badges */

.m4p-tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #4a90e2;
  color: #ffffff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.m4p-tier-best .m4p-tier-badge {
  background: #48bb78;
}

/* Tier Content */

.m4p-tier-licenses {
  font-size: 18px;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 20px;
  margin-top: 10px;
}

.m4p-tier-popular .m4p-tier-licenses,
.m4p-tier-best .m4p-tier-licenses {
  margin-top: 20px;
}

.m4p-tier-price {
  font-size: 48px;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 10px;
  line-height: 1;
}

.m4p-tier-unit {
  font-size: 16px;
  font-weight: 400;
  color: #666;
  display: block;
  margin-top: 8px;
}

.m4p-tier-note {
  font-size: 14px;
  color: #999;
  margin-bottom: 15px;
}

.m4p-tier-savings {
  display: inline-block;
  background: #fff5f5;
  color: #e53e3e;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.m4p-tier-best .m4p-tier-savings {
  background: #f0fff4;
  color: #48bb78;
}

/* ===========================
   Request Form Section
   =========================== */

.m4p-request-form-section {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.m4p-request-form-section h2 {
  font-size: 28px;
  color: #1e3a5f;
  margin-bottom: 15px;
}

.m4p-form-intro {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

/* ===========================
   Form Styling
   =========================== */

.m4p-business-form {
  max-width: 800px;
}

.m4p-form-row {
  margin-bottom: 25px;
}

.m4p-form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.m4p-form-group {
  display: flex;
  flex-direction: column;
}

.m4p-form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.m4p-form-group .required {
  color: #e53e3e;
  margin-left: 2px;
}

.m4p-form-control {
  padding: 12px 15px;
  border: 2px solid #e5e5e5;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.2s ease;
}

.m4p-form-control:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.m4p-form-control:hover {
  border-color: #ccc;
}

.m4p-field-help {
  font-size: 13px;
  color: #999;
  margin-top: 5px;
  margin-bottom: 0;
}

/* ===========================
   Pricing Calculation Display
   =========================== */

.m4p-pricing-calculation {
  background: #f8fbff;
  border: 2px solid #4a90e2;
  border-radius: 8px;
  padding: 25px;
  margin: 30px 0;
}

.m4p-pricing-calculation h3 {
  font-size: 18px;
  color: #1e3a5f;
  margin-top: 0;
  margin-bottom: 20px;
}

.m4p-calc-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
}

.m4p-calc-row:last-child {
  border-bottom: none;
}

.m4p-calc-label {
  font-size: 15px;
  color: #666;
}

.m4p-calc-value {
  font-size: 15px;
  font-weight: 600;
  color: #1e3a5f;
}

.m4p-calc-total {
  padding-top: 15px;
  margin-top: 10px;
  border-top: 2px solid #4a90e2;
  border-bottom: none;
}

.m4p-calc-total .m4p-calc-label,
.m4p-calc-total .m4p-calc-value {
  font-size: 18px;
  font-weight: 700;
  color: #1e3a5f;
}

/* ===========================
   Messages
   =========================== */

.m4p-message {
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 25px;
  font-size: 15px;
}

.m4p-message.success {
  background: #f0fff4;
  border: 1px solid #48bb78;
  color: #276749;
  font-size: 30px;
  line-height: 40px;
  padding: 30px 35px;
}

.m4p-message.error {
  background: #fff5f5;
  border: 1px solid #e53e3e;
  color: #c53030;
}

/* ===========================
   Submit Button
   =========================== */

.m4p-submit-btn {
  background: #4a90e2;
  color: #ffffff;
  border: none;
  padding: 15px 40px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 300px;
}

.m4p-submit-btn:hover {
  background: #357abd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.m4p-submit-btn:active {
  transform: translateY(0);
}

.m4p-submit-btn:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===========================
   Form Note
   =========================== */

.m4p-form-note {
  font-size: 13px;
  color: #999;
  margin-top: 20px;
  line-height: 1.5;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 992px) {
  .m4p-pricing-tiers {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .m4p-pricing-tier {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .m4p-business-signup-wrapper {
    padding: 15px;
  }

  .m4p-pricing-section h2 {
    font-size: 26px;
  }

  .m4p-request-form-section {
    padding: 25px 20px;
  }

  .m4p-request-form-section h2 {
    font-size: 24px;
  }

  .m4p-form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .m4p-tier-price {
    font-size: 38px;
  }

  .m4p-submit-btn {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .m4p-pricing-section h2 {
    font-size: 22px;
  }

  .m4p-request-form-section h2 {
    font-size: 20px;
  }

  .m4p-tier-price {
    font-size: 32px;
  }

  .m4p-pricing-calculation {
    padding: 20px 15px;
  }
}
