/* --- Custom Contact Form Controls --- */
.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-label {
  position: absolute;
  top: -10px;
  left: 15px;
  background: #fff;
  /* background gradient to match input usually, but plain white works if input is on white bg */
  padding: 0 5px;
  color: #666;
  font-size: 0.85rem;
  font-weight: 500;
  pointer-events: none;
  transition: 0.3s;
  z-index: 10;
}

.form-control-custom {
  width: 100%;
  padding: 15px 20px;
  font-size: 1rem;
  color: var(--pelax-dark);
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.form-control-custom:focus {
  border-color: var(--pelax-accent);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
  outline: none;
}

.form-control-custom::placeholder {
  color: transparent; /* Hide placeholder to allow floating label effect or keep clean */
}

.form-control-custom:not(:placeholder-shown) + .form-label,
.form-control-custom:focus + .form-label {
  /* Label stays floating */
  color: var(--pelax-accent);
}

/* Specific styling for Select to handle appearance and arrow */

select.form-control-custom {
  appearance: none;
  -webkit-appearance: none;
  -moz-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='%23d4af37' 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 15px center;
  background-size: 16px;
  cursor: pointer;
  line-height: normal; /* Fix for vertical alignment */
  font-weight: 500;
}

/* Option styling (Limited browser support but improves where possible) */
select.form-control-custom option {
  padding: 12px 15px;
  background-color: #fff;
  color: var(--pelax-dark);
  font-family: inherit;
  font-size: 1rem;
  border-bottom: 1px solid #eee;
}

/* Optgroup styling */
select.form-control-custom optgroup {
  font-weight: 700;
  color: var(--pelax-primary);
  font-style: normal;
  background-color: #f2f4f8; /* Light blue-grey to separate */
  padding: 10px 0;
  font-family: inherit;
}

/* Textarea handling */
textarea.form-control-custom {
  min-height: 150px;
  resize: vertical;
}

/* Contact Panels Layout Fix - ensured flex or grid */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.contact-info-panel,
.contact-form-panel {
  flex: 1;
  min-width: 300px;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.contact-info-panel {
  background: var(--pelax-primary);
  color: #fff;
  border: none;
}

.contact-info-panel h3 {
  color: #fff;
  margin-bottom: 10px;
}

.contact-info-panel .subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  align-items: flex-start; /* Align icons top */
  margin-bottom: 30px;
}

.info-item i {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--pelax-accent) !important; /* Force gold icon */
}

.info-item h5 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.info-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.form-header h4 {
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: var(--pelax-primary);
}

.contact-btn {
  width: 100%;
  padding: 15px;
  background: var(--pelax-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(10, 35, 66, 0.2);
}

.contact-btn:hover {
  background: var(--pelax-accent);
  color: var(--pelax-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}
