.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  background-color: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}
.dark select.form-control {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info-card {
  background-color: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 2rem;
}
.contact-item:last-child {
  margin-bottom: 0;
}
.contact-icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 2px;
  background: rgba(14, 165, 233, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-info-card {
    padding: 2.5rem;
  }
}
@media (max-width: 480px) {
  .contact-info-card {
    padding: 1.5rem;
  }
  .contact-item {
    gap: 12px;
    margin-bottom: 1.5rem;
  }
  .contact-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
}
.form-card {
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .form-card {
    padding: 1.5rem !important;
  }
}
@media (max-width: 600px) {
  .form-grid-2col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
@media (max-width: 768px) {
  .contact-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .contact-info-card,
  .form-card {
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    width: 100% !important;
  }
}

/* Custom Dropdown Selection Menu */
.custom-select-container {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  background-color: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all var(--transition);
  user-select: none;
}

.custom-select-trigger:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.custom-select-trigger.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.custom-select-arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select-trigger.active .custom-select-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  box-shadow:
    var(--shadow-lg),
    0 10px 30px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.98);
}

.dark .custom-select-options {
  background: rgba(15, 23, 42, 0.98);
  box-shadow:
    var(--shadow-lg),
    0 10px 40px rgba(0, 0, 0, 0.4);
}

.custom-select-options.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.custom-select-option {
  padding: 12px 18px;
  cursor: pointer;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.15s ease;
  border-bottom: 1px solid var(--border);
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover {
  background: rgba(14, 165, 233, 0.08);
  color: var(--primary);
  padding-left: 22px;
}

.custom-select-option.selected {
  background: rgba(14, 165, 233, 0.12);
  color: var(--primary);
  font-weight: 600;
}

/* Validation styling */
.custom-select-container.error .custom-select-trigger {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Phone Input Group Redesign (Stacked Layout) */
.phone-input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.phone-country-code {
  width: 100% !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--border-radius) !important;
  background-color: var(--bg) !important;
  color: var(--text) !important;
  padding: 12px 15px !important;
  font-weight: 500 !important;
  background-position: right 1rem center !important;
  background-size: 1em !important;
}

.phone-local-input {
  width: 100% !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--border-radius) !important;
  background-color: var(--bg) !important;
  color: var(--text) !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  padding-right: 15px !important;
  padding-left: 15px;
  font-weight: 500 !important;
  outline: none !important;
  transition: all var(--transition) !important;
}

.phone-local-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2) !important;
}

.phone-error-msg {
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 500;
  display: none;
  margin-top: 0.25rem;
}
