:root {
  --primary: #2c3e50;
  --secondary: #3498db;
  --accent: #e74c3c;
  --errorColor: #e74c3c;
  --stepNumber: 6;
  --containerWidth: 850px;
  --inputBorderColor: #dfe6e9;
  --backgroundColor: #f5f6fa;
}
.dvsf-container {
      width: 100%;
      max-width: var(--containerWidth);
      background: #fff;
      border-radius: 12px;
      padding: 30px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
      margin: 20px auto;
    
    .progress-bar {
      display: flex;
      justify-content: space-between;
      margin: 20px 0;
      position: relative;
    }
    .progress-bar .step {
      text-align: center;
      width: 100%;
      position: relative;
      z-index: 1;
    }
    .progress-bar .step .bullet {
      width: 40px;
      height: 40px;
      background: #fff;
      border: 2px solid #ccc;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto;
      transition: all 0.3s ease;
      font-size: 18px;
      color: #ccc;
    }
    .progress-bar .step .bullet.active {
      border-color: var(--primary);
      background: var(--primary);
      color: #fff;
    }
    .progress-bar .step p {
      font-size: 14px;
      color: #7f8c8d;
      margin-top: 8px;
      transition: color 0.3s ease;
    }
    .progress-bar .step p.active {
      color: var(--primary);
    }
    .progress-bar .step::before {
      content: '';
      position: absolute;
      top: 68px;
      right: -42px;
      width: 79%;
      width: 100%;
      height: 4px;
      background: #ccc;
      z-index: -1;
    }
    .progress-bar .step:first-child::before {
    display: none;  
    }
    .progress-bar .step.active::before {
      background: var(--primary);
    }
    .form-outer {
      width: 100%;
      overflow: hidden;
    }
    .form-outer form {
      display: flex;
      width: calc(100% * var(--stepNumber));
      transition: margin-right 0.4s ease-in-out;
    }
    .form-outer form .page {
      width: calc(100% / var(--stepNumber));
      padding: 20px;
    }
    .field {
      margin: 20px 0;
      position: relative;
    }
    .field .label {
      font-weight: 500;
      font-size: 16px;
      margin-bottom: 8px;
      display: block;
      color: #2d3436;
    }
    .field input,
    .field select {
      width: 100%;
      padding: 12px;
      border: 1px solid var(--inputBorderColor);
      border-radius: 8px;
      font-size: 16px;
      transition: border-color 0.3s ease;
    }
    .field input:focus,
    .field select:focus {
      border-color: var(--primary);
      box-shadow: 0 0 5px rgba(44, 62, 80, 0.2);
    }
    .field input.invalid-input,
    .field select.invalid-input {
      border-color: var(--errorColor);
    }
    .field select {
        padding: unset;
    }
    .field .error {
      display: none;
      color: var(--errorColor);
      font-size: 12px;
      /*margin-top: 5px;*/
      position: absolute;
      right: 0;
      bottom: -17px;
    }
    .field button {
      width: 100%;
      padding: 12px;
      border: none;
      background: var(--secondary);
      color: #fff;
      border-radius: 8px;
      font-size: 16px;
      cursor: pointer;
      transition: background 0.3s ease;
    }
    .field button:hover {
      background: #2980b9;
    }
    .field button:disabled {
      background: #ccc;
      cursor: not-allowed;
    }
    .btns {
      display: flex;
      gap: 10px;
    }
    .btns button.prev {
      background: #7f8c8d;
    }
    .btns button.prev:hover {
      background: #6c757d;
    }
    input#phone[type="tel"] {
        text-align: end;
    }
    .package-slider {
      position: relative;
      margin: 20px 0;
    }
    .slider-track {
      display: flex;
      gap: 15px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      padding: 10px 0;
      scrollbar-width: none;
    }
    .slider-track::-webkit-scrollbar {
      display: none;
    }
    .package-card {
      flex: 0 0 220px;
      background: #fff;
      border: 2px solid #dfe6e9;
      border-radius: 12px;
      padding: 20px;
      text-align: center;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .package-features {
      list-style: none;
      padding: 0;
      margin: 15px 0;
      text-align: left;
      width: 100%;
      font-size: 14px;
    }
    
    .package-features li {
        /*padding: 8px 0;*/
        display: flex;
        align-items: center;
        gap: 5px;
        color: #666;
        text-align: start;
    }
    
    .package-features li i {
      color: #2ecc71;
      font-size: 14px;
    }
    
    .package-card.gold .package-features li {
      color: #333;
      font-weight: 500;
    }
    
    .package-card:hover .package-features {
      color: #333;
    }
    .package-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }
    .package-card.gold {
      border-color: #f1c40f;
      background: #fffdf4;
    }
    .package-card.silver {
      border-color: #bdc3c7;
      background: #f8f9fa;
    }
    .package-card.selected {
      border-color: var(--primary);
      box-shadow: 0 0 12px rgba(44, 62, 80, 0.2);
    }
    .package-card input {
      display: none;
    }
    .package-price {
      font-size: 18px;
      font-weight: 600;
      color: var(--primary);
      margin-bottom: 10px;
    }
    .package-card h4 {
      font-size: 16px;
      margin: 10px 0;
      color: #2d3436;
    }
    .package-card p {
      font-size: 14px;
      color: #636e72;
      margin: 5px 0;
    }
    button.slider-prev,
    button.slider-next {
      display: none;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--secondary);
      color: #fff;
      border: none;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      z-index: 10;
    }
    button.slider-prev {
      right: -20px;
    }
    button.slider-next {
      left: -20px;
    }
    .review-section,
    .payment-summary {
      background: #f8f9fa;
      border-radius: 12px;
      padding: 20px;
      margin: 20px 0;
    }
    .review-section h3,
    .payment-summary h3 {
      font-size: 18px;
      color: var(--primary);
      margin-bottom: 15px;
    }
    .review-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
    }
    .review-item {
      background: #fff;
      padding: 15px;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    }
    .review-item h4 {
      font-size: 16px;
      color: #2d3436;
      margin-bottom: 10px;
    }
    .review-item p {
      font-size: 14px;
      color: #636e72;
      margin: 5px 0;
    }
    .payment-summary .price-summary p {
      font-size: 16px;
      color: #2d3436;
      margin: 10px 0;
    }
    .payment-summary .price-summary span {
      color: #27ae60;
      font-weight: 600;
    }
    .checkbox {
      display: flex;
      align-items: center;
      font-size: 14px;
      color: #2d3436;
    }
    .checkbox input {
      margin-left: 10px;
      width: 18px;
      height: 18px;
    }
    .checkbox .error {
      top: 0;
      right: 30px;
    }
    .field.btns {
        margin-top: 40px;
    }
    
    /*!!!.....!!!*/
    /*.form-outer form .page {*/
    /*    display: none;*/
    /*}*/
    /*.form-outer form .page.active {*/
    /*    display: block;*/
    /*}*/
    /*!!!.....!!!*/
}


.dvsf-container {
    .error-list {
        background-color: #ffe6e6;
        border: 1px solid #e74c3c;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 20px;
    }
    .error-list h4 {
        color: #e74c3c;
        margin-bottom: 10px;
    }
    .error-list ul {
        list-style: none;
        padding: 0;
    }
    .error-list li {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
        font-size: 14px;
        color: #333;
    }
    .error-list li::before {
        content: '⚠️';
        margin-left: 8px;
    }
    .error-list .fix-error {
        background-color: #e74c3c;
        color: white;
        border: none;
        border-radius: 4px;
        padding: 5px 10px;
        margin-right: 10px;
        cursor: pointer;
    }
    .error-list .fix-error:hover {
        background-color: #c0392b;
    }
}

.dvsf-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    
    .form-outer {
        width: 100% !important;
        overflow: hidden !important;
        height: auto !important;
        min-height: 300px !important;
    }
    
    .form-outer form {
        display: flex !important;
        width: calc(100% * var(--stepNumber)) !important;
        transition: margin-right 0.4s ease-in-out !important;
    }
    
    .form-outer form .page {
        width: calc(100% / var(--stepNumber)) !important;
        padding: 20px !important;
        height: auto !important;
        min-height: 200px !important;
        box-sizing: border-box !important;
    }
    
    .form-outer form .page {
        /* max-height: 1000px !important; */
        overflow: hidden !important;
        transition: max-height 0.4s ease-in-out !important;
    }
    
    .form-outer form .page:not(.active) {
        max-height: 0 !important;
    }
    
    #dvsf-form input,
    #dvsf-form textarea,
    #dvsf-form select {
      color: #000000;
    }
    
    #dvsf-form input::placeholder,
    #dvsf-form textarea::placeholder {
      color: #D3D3D3;
      opacity: 1;
    }
    
    #dvsf-form input::-ms-input-placeholder,
    #dvsf-form textarea::-ms-input-placeholder {
      color: #D3D3D3;
    }

}


@media (max-width: 768px) {
  :root {
    --containerWidth: 90%;
  }
  .dvsf-container {
    padding: unset;
    .form-outer form .page{
        padding: unset !important;
    }
    button.slider-prev, button.slider-next {
        /*display: none !important;*/
    }
    button.slider-prev {
      display: block !important;
      right: 0px;
    }
    button.slider-next {
      display: block !important;
      left: 0px;
    }
    .progress-bar .step p {
        font-size: 12px;
    }
    .progress-bar .step::before {
        display: none;
    }
    .progress-bar .step::after {
        display: none;
    }
    .package-card {
        flex: 0 0 180px;
    }
    .review-grid {
        grid-template-columns: 1fr;
    }
  }
}
@media (max-width: 480px) {
  :root {
    --containerWidth: 100%;
  }
  .dvsf-container {
    border-radius: 0;
    margin: 0;
    .progress-bar .step::before {
        display: none;
    }
    .progress-bar .step::after {
        display: none;
    }
    .progress-bar .step p {
        display: none;
    }
    .progress-bar .step .bullet {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .package-card {
        flex: 0 0 150px;
    }
  }
}


@media (max-width: 860px) {
    .package-card {
        flex: 0 0 48% !important;
    }
}

@media (max-width: 760px) {
    .package-card {
        flex: 0 0 100% !important;
    }
    .package-slider {
        padding: 0px 50px;
    }
}


.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c3e50;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}






.dvsf-container {
    .flex-checkboxes {
        display: flex;
        gap: 1rem;
        white-space: nowrap;
        flex-wrap: wrap;
    }

    .flex-checkboxes .field {
        flex: 1;
    }

    .flex-checkboxes .checkbox a {
        color: red;
        text-decoration: underline;
    }
}


@media (max-width: 768px) {
    .dvsf-container {
        .flex-checkboxes .field {
            margin:unset;
        }
    }
}


input#coupon_code {
    width: min-content;
}

button#apply-coupon {
    width: fit-content;
    background-color: #10813f;
}