:root {
      --primary-color: #0e355a;
      --secondary-color: #ea1a44;
      --accent-color: #6CA8DE;
      --light-bg: #F0F2F5;
      --text-dark: #333333;
      --text-light: #888888;
      --border-radius: 12px;
      --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
      --transition: all 0.3s ease;
}



.purchase-order {
      padding: 2rem 0;
}

.section-header {
      text-align: center;
      margin-bottom: 2rem;
}

.section-header h2 {
      color: var(--primary-color);
      font-weight: 700;
      margin-bottom: 0.5rem;
}

.section-header p {
      color: var(--text-light);
      max-width: 600px;
      margin: 0 auto;
}

/* تنسيق Steps */
.steps-container {
      display: flex;
      justify-content: space-between;
      margin-bottom: 2.5rem;
      position: relative;
}

.steps-container::before {
      content: '';
      position: absolute;
      top: 25px;
      right: 0;
      left: 0;
      height: 4px;
      background-color: #e0e0e0;
      z-index: 1;
}

.step {
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
      z-index: 2;
      flex: 1;
}

.step-icon {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background-color: #e0e0e0;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 0.5rem;
      color: white;
      font-weight: bold;
      transition: var(--transition);
}

.step.active .step-icon {
      background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
      box-shadow: 0 4px 10px rgba(14, 53, 90, 0.3);
}

.step.completed .step-icon {
      background-color: var(--primary-color);
}

.step.completed .step-icon::after {
      content: '✓';
      font-size: 1.2rem;
}

.step-label {
      font-weight: 600;
      color: var(--text-light);
      text-align: center;
      font-size: 0.9rem;
}

.step.active .step-label {
      color: var(--primary-color);
}

.step.completed .step-label {
      color: var(--primary-color);
}

/* تنسيق التبويبات */
.nav-pills-custom {
      background-color: var(--light-bg);
      border-radius: 42px;
      padding: 15px;
      margin-bottom: 2rem;
      display: inline-flex;
      width: auto;
}

.nav-pills-custom .nav-link {
      color: var(--text-dark);
      padding: 12px 30px;
      font-weight: 500;
      border-radius: 25px;
      transition: var(--transition);
}

.nav-pills-custom .nav-link.active {
      background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
      color: white;
      box-shadow: 0 4px 10px rgba(14, 53, 90, 0.3);
}

/* تنسيق الحاويات */
.form-container {
      background-color: white;
      border-radius: var(--border-radius);
      box-shadow: var(--shadow);
      padding: 2rem;
      margin-bottom: 1.5rem;
      transition: var(--transition);
}

.form-container:hover {
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.form-container h4 {
      color: var(--primary-color);
      margin-bottom: 1.5rem;
      padding-bottom: 0.75rem;
      border-bottom: 2px solid var(--light-bg);
}

/* تنسيق الحقول */
.form-label {
      font-size: small;
      font-weight: bold;
}

.form-control,
.form-select,
.select2-selection {
      border: 1px solid #e1e5e9;
      border-radius: 8px;
      padding: 0.75rem 1rem;
      transition: var(--transition);
}

.form-control:focus,
.form-select:focus,
.select2-selection:focus {
      border-color: var(--accent-color);
      box-shadow: 0 0 0 0.2rem rgba(108, 168, 222, 0.25);
}

.required::after {
      content: " *";
      color: var(--secondary-color);
}

/* تنسيق الأزرار */
.btn-primary-custom {
      background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
      border: none;
      border-radius: 30px;
      padding: 12px 30px;
      font-weight: 600;
      color: white;
      transition: var(--transition);
      box-shadow: 0 4px 10px rgba(14, 53, 90, 0.3);
}

.btn-primary-custom:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 15px rgba(14, 53, 90, 0.4);
      color: white;
}

.btn-outline-custom {
      border: 2px solid var(--primary-color);
      border-radius: 30px;
      padding: 10px 25px;
      font-weight: 600;
      color: var(--primary-color);
      transition: var(--transition);
}

.btn-outline-custom:hover {
      background-color: var(--primary-color);
      color: white;
}

/* تنسيق بطاقات السيارات */
.car-card {
      background-color: white;
      border-radius: var(--border-radius);
      box-shadow: var(--shadow);
      padding: 1.5rem;
      margin-bottom: 1.5rem;
      transition: var(--transition);
      position: sticky;
      top: 100px;
}

.car-card:hover {
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.car-card h5 {
      color: var(--primary-color);
      margin-bottom: 1rem;
}

.car-image {
      width: 100%;
      border-radius: 8px;
      margin-bottom: 1rem;
}

.car-details {
      margin-bottom: 1rem;
}

.car-details .detail {
      display: flex;
      justify-content: space-between;
      margin-bottom: 0.5rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--light-bg);
}

.car-details .detail:last-child {
      border-bottom: none;
}

.price-info {
      background-color: var(--light-bg);
      border-radius: 8px;
      padding: 1rem;
      text-align: center;
      margin-top: 1rem;
}

.price-info .price {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--secondary-color);
}

/* تنسيق الباقات */
.pricing-section {
      margin: 2rem 0;
}

.pricing-block {
      margin-bottom: 1.5rem;
}

.pricing-block .inner-box {
      display: flex;
      background-color: white;
      border-radius: var(--border-radius);
      box-shadow: var(--shadow);
      overflow: hidden;
      transition: var(--transition);
      cursor: pointer;
      border: 3px solid transparent;
}

.pricing-block .plan-radio:checked+.inner-box {
      border-color: var(--primary-color);
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.pricing-block .icon-box {
      background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
      padding: 1.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 150px;
}

.pricing-block .icon-box img {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      border: 3px solid white;
}

.pricing-block .price-box {
      padding: 1.5rem;
      flex-grow: 1;
}

.pricing-block .price-box h4 {
      color: var(--primary-color);
      margin-bottom: 1rem;
}

.pricing-block .features {
      list-style: none;
      padding: 0;
      margin: 0;
}

.pricing-block .features li {
      padding: 0.25rem 0;
      position: relative;
      padding-right: 1.5rem;
}

.pricing-block .features li:before {
      content: "✓";
      position: absolute;
      right: 0;
      color: var(--primary-color);
      font-weight: bold;
}

.pricing-block .select-plan {
      text-align: center;
      margin-top: 1rem;
}

.plan-radio:checked+.inner-box .select-plan .check-icon {
      display: inline-block;
      background-color: var(--primary-color);
      color: white;
      width: 25px;
      height: 25px;
      border-radius: 50%;
      text-align: center;
      line-height: 25px;
      position: absolute;
      top: -10px;
      left: -10px;
}

/* تنسيق الأقسام المخفية */
.hidden-section {
      display: none;
}

/* تنسيق الاستجابة للشاشات المختلفة */
@media (max-width: 768px) {
      .nav-pills-custom {
            flex-direction: column;
            width: 100%;
      }

      .pricing-block .inner-box {
            flex-direction: column;
      }

      .pricing-block .icon-box {
            min-width: 100%;
      }

      .car-card {
            position: static;
      }

      .steps-container {
            flex-direction: column;
            align-items: flex-start;
      }

      .steps-container::before {
            display: none;
      }

      .step {
            flex-direction: row;
            margin-bottom: 1rem;
            width: 100%;
      }

      .step-icon {
            margin-bottom: 0;
            margin-left: 1rem;
      }
}

/* تنسيق خاص للـ select2 */
.select2-container--default .select2-selection--single {
      border: 1px solid #e1e5e9;
      border-radius: 8px;
      height: auto;
      padding: 0.75rem 1rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
      height: 100%;
}

.select2-car-logo {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      margin-left: 8px;
}

/* تنسيق خاص لرقم الهاتف */
.iti {
      width: 100%;
}

.iti__flag-container {
      right: 0;
      left: auto;
}

.iti--allow-dropdown input,
.iti--allow-dropdown input[type=text],
.iti--allow-dropdown input[type=tel] {
      padding-right: 17px;
}

/* تنسيق الأخطاء */
.invalid-feedback {
      color: var(--secondary-color);
      font-weight: 500;
}

/* تنسيق المعلومات الإضافية */
.info-box {
      background-color: var(--light-bg);
      border-radius: var(--border-radius);
      padding: 1.5rem;
      margin-bottom: 1.5rem;
}

.info-box h5 {
      color: var(--primary-color);
      margin-bottom: 1rem;
}

.contact-list {
      list-style: none;
      padding: 0;
}

.contact-list li {
      display: flex;
      align-items: center;
      margin-bottom: 0.75rem;
}

.contact-list .icon {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background-color: var(--primary-color);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-left: 10px;
      color: white;
}

/* تنسيق Steps Navigation */
.steps-navigation {
      display: flex;
      justify-content: space-between;
      margin-top: 2rem;
}

.step-content {
      display: none;
}

.step-content.active {
      display: block;
      animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
      from {
            opacity: 0;
            transform: translateY(10px);
      }

      to {
            opacity: 1;
            transform: translateY(0);
      }
}


.file-drop-area {
      position: relative;
      display: block;
      max-width: 100%;
      padding: 25px;
      border-radius: 3px;
      transition: 0.2s;
      text-align: center;
      margin-top: 10px;
      border: 1px solid rgba(0, 0, 0, 0.2);
}

.choose-file-button {
      flex-shrink: 0;
      background-color: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 3px;
      padding: 8px 15px;
      margin-right: 10px;
      font-size: 12px;
      text-transform: uppercase;
}

.file-message {
      font-size: small;
      font-weight: 300;
      line-height: 1.4;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
}

.file-input {
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      width: 100%;
      cursor: pointer;
      opacity: 0;
}

/* order summary */
.order-summary-content {
      padding: 10px;
}

.detail-section {
      border-bottom: 1px solid #eee;
      padding-bottom: 15px;
      margin-bottom: 15px;
}

.detail-section:last-child {
      border-bottom: none;
      margin-bottom: 0;
}

.detail-section h6 {
      color: #333;
      font-weight: bold;
      font-size: 1.1em;
}

.detail {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px dashed #f0f0f0;
}

.detail:last-child {
      border-bottom: none;
}

.detail.detail-column {
      flex-direction: column;
      align-items: flex-start;
}

.detail span:first-child {
      color: #666;
      font-weight: 500;
}

.detail .value {
      color: #333;
      font-weight: 600;
      text-align: left;
}

.cars-list {
      width: 100%;
      padding: 10px;
      background: #f8f9fa;
      border-radius: 6px;
}

.car-item {
      padding: 8px;
      background: white;
      border-radius: 4px;
      border-left: 3px solid #007bff;
}

.car-item:last-child {
      margin-bottom: 0 !important;
}

.total-price {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      padding: 15px !important;
      border-radius: 8px;
      margin-top: 15px;
      border: none !important;
}

.total-price span {
      color: white !important;
}

.price-highlight {
      font-size: 1.4em;
      font-weight: bold;
}

.note-content {
      background: #fff9e6;
      padding: 12px;
      border-radius: 6px;
      border-right: 4px solid #ffc107;
}

.note-content p {
      margin: 0;
      color: #666;
      line-height: 1.6;
}

@media (max-width: 768px) {
      .detail {
            flex-direction: column;
            align-items: flex-start;
      }

      .detail .value {
            margin-top: 5px;
            text-align: right;
      }
}