/*
========================================
========= PARTNER FORM STYLES ==========
========================================
*/

/* Form Container */
.form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* General Grid and Form Group Styling */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px; /* Increased gap for better spacing */
}

.form-group.full-width {
  grid-column: 1 / -1;
}

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

/* Styling for Labels */
.form-group label {
  margin-bottom: 8px;
  font-size: 16px;
  color: #333;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.form-group label i {
  margin-left: 8px; /* Corrected from margin-right due to RTL */
  color: var(--yello-color);
}

/* Unified Styling for Input and Select Fields */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit; /* Use the body's font */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #f9f9f9;
  box-sizing: border-box; /* Important for consistent sizing */
}

/* Focus effect for better UX */
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--yello-color);
  box-shadow: 0 0 8px rgba(255, 193, 7, 0.3);
}

/* Custom styling for the select dropdown arrow */
.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: left 15px center;
  background-size: 12px;
  padding-right: 15px; /* Keep padding consistent */
  padding-left: 40px; /* Make space for the icon */
}

/* Phone Input Styling */
.phone-input {
  display: flex;
  align-items: center;
}

.phone-input .country-code {
  padding: 12px 15px;
  background-color: #eee;
  border: 2px solid #ddd;
  border-left: none; /* Corrected from border-right for RTL */
  border-radius: 8px 0 0 8px; /* Flipped border-radius for RTL */
  font-weight: 600;
  color: #555;
}

.phone-input input[type="tel"] {
  border-radius: 0 8px 8px 0; /* Flipped border-radius for RTL */
  border-right: 2px solid #ddd;
}
.phone-input input[type="tel"]:focus {
  border-right-color: var(--yello-color);
}


/* Custom Checkbox Styling */
.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-top: 10px;
}

.custom-checkbox input[type="checkbox"] {
  display: none; /* Hide the original checkbox */
}

.custom-checkbox label {
  position: relative;
  padding-right: 40px; /* Space for the custom checkbox */
  cursor: pointer;
  font-weight: normal; /* Make label text normal weight */
  margin-bottom: 0;
  font-size: 15px;
}

.custom-checkbox label a {
    color: var(--yello-color);
    text-decoration: none;
    font-weight: 600;
}

.custom-checkbox label::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 2px solid #ddd;
  border-radius: 6px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.custom-checkbox label::after {
  content: '\f00c'; /* Font Awesome check icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  font-size: 16px;
  color: white;
  transition: transform 0.3s ease;
}

.custom-checkbox input[type="checkbox"]:checked + label::before {
  background-color: var(--yello-color);
  border-color: var(--yello-color);
}

.custom-checkbox input[type="checkbox"]:checked + label::after {
  transform: translateY(-50%) scale(1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr; /* Stack fields on top of each other */
  }
}

/* ========= Multi-Step Form ========= */
.progress-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px; /* Increased margin */
  z-index: 1;
}

.progress-bar::before,
.progress {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50% );
  height: 4px;
  width: 100%;
  background-color: #e0e0e0;
  z-index: -1; /* Adjusted z-index */
}

.progress {
  background-color: var(--yello-color);
  width: 0%;
  transition: 0.3s ease;
}

.progress-step {
  width: 40px; /* Increased size */
  height: 40px; /* Increased size */
  background-color: #fff;
  border: 3px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  position: relative;
  color: #999;
  font-weight: bold;
  transition: all 0.4s ease;
}

.progress-step.active {
  background-color: var(--yello-color);
  border-color: var(--yello-color);
  color: white;
}

.progress-step::after {
  content: attr(data-title-key);
  position: absolute;
  top: 55px; /* Adjusted position */
  font-size: 14px;
  color: #666;
  width: 120px;
  text-align: center;
  font-family: 'DGAgnadeen', sans-serif;
  font-weight: 600;
}

.form-step {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-step.active {
  display: block;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.btn-prev,
.btn-next,
.partner-form button[type="submit"] {
  background-color: var(--yello-color);
  color: var(--black-color);
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  font-family: 'DGAgnadeen', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-prev:hover,
.btn-next:hover,
.partner-form button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-prev {
  background-color: #f1f1f1;
}
