/*
Theme Name: Divi Child
Theme URI: http://www.elegantthemes.com/gallery/divi/
Description: Divi Child Theme with Premium Registration Wizard
Author: Antigravity
Author URI: https://antigravity.google
Template: Divi
Version: 1.1.0
*/

/* --- CORE WIZARD DESIGN --- */
.registration-wizard {
  margin: 20px 0 0;
}

/* Stepper Navigation */
.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0 35px 0;
}
.wizard-stepper .step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.3s ease;
}
.wizard-stepper .step.active {
  color: #0ea5e9;
}
.wizard-stepper .step.completed {
  color: #10b981;
}
.wizard-stepper .step-num {
  width: 34px;
  height: 34px;
  background-color: #ebe6e7;
  color: #4a5565;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}
.wizard-stepper .step.active .step-num {
  background: #0ea5e9;
  color: #fff;
}
.wizard-stepper .step.completed .step-num {
  background: #10b981;
  color: #fff;
}
.wizard-stepper .step-label {
  font-size: 14px;
  font-weight: 500;
  color: #364153;
}
.wizard-stepper .step-line {
  width: 80px;
  height: 2px;
  background: #d1d5dc;
  margin: 0 18px;
}
.wizard-stepper .step.completed + .step-line {
  background: #10b981;
}

/* Step Containers */
.wizard-step {
  display: none;
  animation: slideUp 0.5s ease forwards;
}
.wizard-step.active {
  display: block;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- STEP 1: PLANS --- */
.pms-billing-toggle-container {
  background: #ffffff;
  padding: 6px;
  border-radius: 50px;
  display: flex;
  gap: 5px;
  width: fit-content;
  min-width: 280px;
  margin: 0 auto 45px auto;
}
.billing-toggle {
  flex: 1;
  border: none;
  background: none;
  padding: 8px 10px;
  border-radius: 50px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.billing-toggle.active {
  background: #0ea5e9;
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.discount-tag {
  display: inline-block;
  background: #fff0e6;
  color: #ff6b00;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
  margin-left: 4px;
  white-space: nowrap;
}

.pms-plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}
.pms-plan-card {
  background: #fff;
  border: 2px solid #ebe6e7;
  border-radius: 14px;
  padding: 22px 22px 12px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}
.pms-plan-card:hover {
  border-color: #0ea5e9;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}
.pms-plan-card.selected {
  transform: scale(1.05);
  border-color: #0ea5e9;
}
.pms-plan-card.popular {
  border-color: #0ea5e9;
  padding-top: 60px;
}
.popular-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(
    to right,
    oklch(0.685 0.169 237.323) 0%,
    oklch(0.546 0.245 262.881) 100%
  );
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  width: 100%;
  text-align: center;
}

.checkmark-circle {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  background: #0ea5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}

.checkmark-circle svg {
  width: 18px;
  height: 18px;
}

.pms-plan-card.selected .checkmark-circle {
  opacity: 1;
}

.plan-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 0;
}
.plan-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 30px;
  margin-top: 0;
}

.plan-pricing-display {
  margin-bottom: 16px;
}
.plan-price-wrapper {
  display: flex;
  align-items: baseline;
  margin-bottom: 0px;
}
.plan-currency {
  font-size: 18px;
  font-weight: 700;
  margin-right: 2px;
}
.plan-price {
  font-size: 35px;
  font-weight: 700;
  font-family: "Merriweather Sans", serif;
  color: #101828;
}
.plan-period {
  color: #4a5565;
  font-size: 14px;
  margin-left: 4px;
}

.plan-features {
  list-style: none;
  padding: 0 !important;
  margin: 0;
  flex-grow: 1;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #334155;
}
.feat-icon {
  flex-shrink: 0;
}

/* --- STEP 2: DETAILS --- */
.pms-details-step, {
  max-width: 800px;
  margin: 0 auto;
}
.form-section-card, 
#pms_login ,
#pms_edit-profile-form,
#pms_recover_password_form,
#pms-change-subscription-form,
#pms-cancel-subscription-form,
#pms-abandon-subscription-form
{
  background: #fff;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03);
}
.form-header-premium {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}
.icon-wrap {
  width: 40px;
  height: 40px;
  background: #f0f9ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-header-premium h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}

.pms-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 12px;
}
.pms-field-wrap.full {
  grid-column: span 2;
}
.pms-field-wrap label, .login-username label , .login-password label, .pms-form-fields-wrapper label{
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: #101828;
  margin-bottom: 6px;
}
.pms-field-wrap label .req-star {
  color: #ef4444;
  margin-left: 2px;
}
.pms-field-wrap input, 
.pms-field-wrap select,
.login-username input, 
.login-password input,
.pms-field  input
{
  width: 100% !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 12px 12px !important;
  font-size: 14px !important;
  color: #0f172a !important;
  transition: 0.3s !important;
}

.pms-field-wrap select {
  cursor: pointer;
}
.pms-field-wrap input:focus,
.pms-field-wrap select:focus {
  background: #fff !important;
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1) !important;
  outline: none !important;
}
.field-hint {
  display: block;
  margin-top: 6px;
  color: #4a5565;
  font-size: 12px;
}

/* --- STEP 3: PAYMENT --- */
.pms-payment-step-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 25px;
}
.payment-main-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
}
.secure-badge {
  background: #f0f9ff;
  border: 1px solid #b8e6fe;
  border-radius: 14px;
  padding: 15px;
  margin: 20px 0;
  display: flex;
  gap: 10px;
}
.secure-badge svg {
  margin-top: 4px;
  stroke: #0084d1;
}
.badge-text strong {
  display: block;
  color: #101828;
  font-size: 14px;
  font-weight: 600;
}
.badge-text p {
  margin: 0;
  font-size: 13px;
  color: #4a5565;
  line-height: 1.7;
}
.terms-check label {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.terms-check label a {
  text-decoration: underline;
}
.terms-check input {
  width: 14px;
  height: 14px;
  margin: 0;
}
.order-summary-sidebar {
  background: linear-gradient(
    to right bottom,
    oklch(0.977 0.013 236.62) 0%,
    oklch(0.97 0.014 254.604) 100%
  );
  border: 1px solid #b8e6fe;
  border-radius: 14px;
  padding: 24px;
  height: fit-content;
}
.summary-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 22px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}
.summary-line .val {
  font-weight: 500;
  color: #101828;
}
span#sum-total-price {
  font-weight: 700;
  font-size: 20px;
}
.summary-line.total {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #b8e6fe;
  font-size: 16px;
}

.trial-box {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
}
.trial-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  color: #101928;
}
.trial-header svg {
  color: #10b981;
}
.trial-box p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.summary-perks {
  list-style: none;
  padding: 0 !important;
  margin: 20px 0 25px;
}
.summary-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 6px;
}

/* --- NAVIGATION BUTTONS --- */
.wizard-navigation{
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}
.wizard-navigation.center {
  justify-content: center;
}

.btn-next,
.btn-submit-wizard,
.login-submit input,
#pms-change-subscription-form input[type=submit],
#pms_edit-profile-form input[type=submit],
#pms-cancel-subscription-form input[type=submit],
#pms-abandon-subscription-form input[type=submit],
#pms_recover_password_form input[type=submit]
{ 
  background: #0ea5e9;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-next:hover,
.btn-submit-wizard:hover {
  background: #0284c7;
}

#pms-change-subscription-form input[type=submit],
#pms_edit-profile-form input[type=submit],
#pms-cancel-subscription-form input[type=submit],
#pms-abandon-subscription-form input[type=submit],
#pms_recover_password_form input[type=submit]:hover{
	 background: #0284c7;
}


#pms-change-subscription-form input[type=submit],
#pms-cancel-subscription-form input[type=submit],
#pms-abandon-subscription-form input[type=submit]
{
	display:inline-flex !important;
}

#pms-change-subscription-form input[type=submit]+input[type=submit],
#pms-cancel-subscription-form input[type=submit]+input[type=submit],
#pms-abandon-subscription-form input[type=submit]+input[type=submit]{
	background: #fff;
  color: #64748b;
  border: 1px solid #e2e8f0;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}
#pms-change-subscription-form input[type=submit]+input[type=submit],
#pms-cancel-subscription-form input[type=submit]+input[type=submit],
#pms-abandon-subscription-form input[type=submit]+input[type=submit]:hover{
	background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-back {
  background: #fff;
  color: #64748b;
  border: 1px solid #e2e8f0;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}
.btn-back:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.pms-error {
  border-color: #ef4444 !important;
  background-color: #fff1f2 !important; /* Light red background */
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

/* Hide standard PMS parts that we replaced */
.pms-field-subscriptions,
.pms-form-submit {
  display: none !important;
}

.wizard-js-error-msg {
  background: #fef2f2;
  border: 1px solid #f87171;
  color: #b91c1c;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 14px;
}

.pms_field-errors-wrapper {
  margin-bottom: 35px !important;
  margin-top: 25px;
}

.field-error-msg {
  color: #ef4444;
  font-size: 12px;
  margin-top: 5px;
  display: none;
  font-weight: 500;
}

.pms-error ~ .field-error-msg {
  display: block;
}

.pms_field-errors-wrapper > p {
  font-weight: bold;
  margin-bottom: 5px !important;
}

.pms_field-errors-wrapper ul {
  padding-bottom: 0;
  font-size: 14px;
}

nav.pms-account-navigation li.pms-account-navigation-link a {
  color: #101929;
  padding-bottom: 8px;
  font-size: 16px;
}

nav.pms-account-navigation {
  margin-bottom: 25px;
}

nav.pms-account-navigation li.pms-account-navigation-link a:hover,
nav.pms-account-navigation
  li.pms-account-navigation-link
  .pms-account-navigation-link--active {
  box-shadow: 0 2px 0 0 currentColor !important;
}

nav.pms-account-navigation
  li.pms-account-navigation-link
  .pms-account-navigation-link--active {
  color: #00a6f4;
}

@media screen and (max-width: 900px) {
  .pms-plan-cards,
  .pms-payment-step-layout,
  .pms-fields-grid {
    grid-template-columns: 1fr;
  }
  .pms-field-wrap.full {
    grid-column: span 1;
  }
}

@media screen and (max-width: 576px) {
  .pms-billing-toggle-container {
    margin: 0 auto 30px auto;
  }

  .pms-plan-cards {
    gap: 15px;
    margin-bottom: 20px;
  }

  .wizard-stepper {
    margin: 15px 0 25px 0;
    flex-direction: column;
    gap: 5px;
  }

  .wizard-stepper .step-line {
    width: 2px;
    height: 20px;
  }

  .pms-plan-card.selected {
    transform: scale(1);
  }
}
#pms_login .login-submit, .login-password, .login-username ,.login-remember, .pms-form-fields-wrapper {
	
	padding-bottom:0px !important;
  }
#pms_login .login-submit, .login-extra{
	display:flex;
	justify-content:center !important;
}
#pms_login .login-extra{
	margin-bottom:0px !important;
}

#pms_login .register, .lostpassword{
		font-size:14px;
}
#pms_login, #pms_recover_password_form{
	max-width:600px;
	margin:auto;
}
#pms_recover_password_form p{
	font-size:14px;
     margin-bottom:8px !important;
}
#pms_recover_password_form br{
	display:none;
}
table.pms-account-subscription-details-table{
	background-color:#fff;
}
