
/* تنظیمات کلی */
:root {
    --primary-color: #333695; /* سبز */
    --secondary-color: #2196F3; /* آبی */
    --text-color: #333;
    --light-gray: #f4f4f4;
    --medium-gray: #ccc;
    --white: #fff;
}

/* کانتینر اصلی فرم */
.wizard-container {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* برای اینکه گوشه‌های گرد درست نمایش داده شوند */
    width: 100%;
     display: flex;
   /* flex-direction: column; /* چیدمان عمودی در موبایل */
}
@media (max-width: 480px) {
	.wizard-container {
	  flex-direction: column;
	  }
}

/* بخش مراحل (Navigation) */
.wizard-container .wizard-nav {
    background-color: rgba(246, 246, 246, 1);
    padding: 20px 20px 20px 50px;
    min-width: 28%;
}

.wizard-container .wizard-steps {
    list-style: none;
    display: flex;
    justify-content: space-between; /* توزیع فاصله بین مراحل */
    align-items: start;
    flex-wrap: wrap; /* در صورت کمبود جا، مراحل به خط بعدی بروند */
    gap: 10px; /* فاصله بین مراحل */
    flex-direction: column;
    padding: 0;  
}

.wizard-container .step {
    display: flex;
    gap: 20px;
    align-items: center;
    text-align: right;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 16px;
    min-width: 100%;
    margin-bottom: 0;
    position: relative;
    border: 1px solid rgba(217, 217, 217, 1);
    color: rgba(47, 50, 57, 1);
	background: rgb(255, 255, 255);
}

.wizard-container .step.active {
    /*! background-color: rgb(148, 150, 230); */
	width: calc(100% + 25px);
}

.wizard-container .step:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.wizard-container .step-icon.confirm {
  /*! background: rgb(41, 46, 206) !important; */
  color: #fff;
  font-size: 0;
}

.wizard-container .step-icon.confirm::after {
  content: "✓";
  color: #fff;
  font-size: 22px;
}


.wizard-container .step-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 22px;
    background: rgb(41, 46, 206,0.5);
    color: #fff;
}
.wizard-container .step-icon::after {
  /*! content: ''; */
  /*! position: absolute; */
  /*! right: 24px; */
  /*! top: 110%; */
  /*! transform: translateY(-50%); */
  /*! width: 1px; */
  /*! height: 31px; */
  /*! background-color: #fff; */
}


/* حذف خط برای آخرین آیتم */
.wizard-container .wizard-steps li:last-child .step-icon:after {
   /* display: none; 
	*/
}
.wizard-container .step.active .step-icon {
    background-color: var(--primary-color);
    color: var\(--white;
}

 
.wizard-container .step .title {
  margin: 0;
  color: rgba(47, 50, 57, 1);
}

.wizard-container .step .title .step-title{
    font-size: 1em;
  font-weight: 800;
    
}
.wizard-container .step .title .step-subtitle{
    font-size: 0.9em;
    font-weight: 200;
} 

/* بخش محتوای فرم (Content) */
.wizard-container .wizard-content {
    padding: 30px;
    flex-grow: 1; /* محتوا به اندازه کافی جا بگیرد */
    display: flex; /* برای اینکه فرم در مرکز قرار گیرد */
    flex-direction: column;
}

.wizard-container .step-content {
    display: flex;  
    flex-direction: column; /* چیدمان عمودی المان‌های فرم */
    gap: 20px; /* فاصله بین گروه‌های فرم */
    animation: fadeIn 0.5s ease-out; /* انیمیشن ورود */
}

 

.wizard-container .step-content h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8em;
}

.wizard-container .form-group {
    display: flex;
    flex-direction: column; /* لیبل و اینپوت زیر هم */
    gap: 8px;
}

.wizard-container .form-group label {
    font-weight: bold;
    font-size: 1.1em;
}

.wizard-container .form-group input[type="text"],
.wizard-container .form-group input[type="email"],
.wizard-container .form-group input[type="tel"],
.wizard-container .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wizard-container .form-group input:focus,
.wizard-container .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.wizard-container .form-group textarea {
    resize: vertical; /* اجازه تغییر اندازه عمودی */
}

/* دکمه‌های ناوبری */
.wizard-container .form-navigation {
    display: flex;
    justify-content: space-between; /* دکمه قبلی و بعدی در دو طرف */
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
 }

.wizard-container .nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
}


.wizard-container .btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.wizard-container .btn-prev {
    background-color: var(--medium-gray);
    color: var(--white);
}

.wizard-container .btn-prev:hover {
    background-color: #999;
    transform: translateX(-2px);
}


.wizard-container .btn-valid
{
    background-color: #00cd03;
    color: var(--white);
}


.wizard-container .btn-next,
.wizard-container .btn-submit {
    background-color: var(--secondary-color);
    color: var(--white);
}

.wizard-container .btn-next:hover,
.wizard-container .btn-submit:hover {
    background-color: #1976D2; /* آبی تیره‌تر */
    transform: translateX(2px);
}

.wizard-container .btn-submit {
    background-color: var(--primary-color); /* سبز برای ثبت نهایی */
}
.wizard-container .btn-submit:hover {
     background-color: #388E3C; /* سبز تیره‌تر */
}

/* انیمیشن */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ریسپانسیو بودن */
@media (max-width: 768px) {
    .wizard-container .wizard-container {
        flex-direction: column; /* عمودی در تبلت */
    }

    .wizard-container .wizard-nav {
        padding: 15px;
    }
    
    .wizard-container .wizard-steps {
        justify-content: center; /* وسط چین کردن مراحل */
        gap: 15px; /* کمی فاصله بیشتر */
    }

    .wizard-container .step {
        padding: 8px;
    }
    .wizard-container .step-icon {
        width: 25px;
        height: 25px;
        margin-bottom: 3px;
    }
    .wizard-container .step-title {
        font-size: 0.8em;
    }

    .wizard-container .wizard-content {
        padding: 20px;
    }
    
    .wizard-container .step-content h2 {
        font-size: 1.5em;
    }

    .wizard-container .form-navigation {
        flex-wrap: wrap; /* دکمه‌ها در صورت نیاز به خط بعدی بروند */
        justify-content: center;
        gap: 15px;
    }
    .wizard-container .btn {
        padding: 10px 20px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .wizard-container .wizard-steps {
        flex-direction: row; /* مراحل پشت سر هم در موبایل */
        overflow-x: auto; /* اسکرول افقی برای مراحل */
        padding-bottom: 10px; /* کمی فاصله برای اسکرول */
        justify-content: flex-start; /* چسبیدن به چپ */
    }
    
    .wizard-container .step {
        min-width: 85%; /* حداقل عرض برای هر مرحله */
        flex-shrink: 0; /* جلوگیری از کوچک شدن بیش از حد */
    }
	.wizard-container .step.active {
	  width: calc(90% + 25px);
	}	
    .wizard-container .step-title {
        font-size: 0.75em;
        white-space: nowrap; /* جلوگیری از رفتن به خط بعدی */
    }
    
    .wizard-container .wizard-content {
         padding: 15px;
    }

    .wizard-container .step-content h2 {
        font-size: 1.3em;
    }
    
    .wizard-container .form-group label {
        font-size: 1em;
    }
    
    .wizard-container .btn {
        width: 100%; /* دکمه‌ها عرض کامل بگیرند */
    }
}





.wp-custom-error {
    background: #f2f2f2;
    border-right: 4px solid #d63638;
    padding:12px;
    color: #3c434a;
}

.wp-custom-info {
    background: #f2f2f2;
    border-right: 4px solid #3671D6;
    padding:12px;
    color: #3c434a;
}