/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

/* FORM CARD */
.contact-form-card {
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 30px;
  backdrop-filter: blur(10px);
  box-shadow: var(--card-shadow);
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.contact-form input:not([type="checkbox"]),
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
  background: var(--field-background);
  color: var(--field-text);
  font: inherit;
  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--field-placeholder);
  opacity: 1;
}

.contact-form input:not([type="checkbox"]):focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--field-border-focus);
  box-shadow: var(--field-focus-ring);
}

.contact-image {
  margin-top: 60px;
  text-align: left;
}

.contact-image img {
  width: 100%;
  border-radius: 20px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form select {
  cursor: pointer;
}

.form-consent {
  margin-top: 10px;
  display: block;
}

.form-consent label {
  display: grid;
  grid-template-columns: 18px 1fr;  /* 👈 KEY FIX */
  align-items: start;
  column-gap: 10px;

  width: 100%;
  text-align: left;
}

.form-consent input[type="checkbox"] {
  margin-top: 3px;
}

.form-consent span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}


/* MOBILE */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }

  .contact-image {
    justify-content: center;
  }

  .contact-image img {
  display: none;
  }  
  
}

.form-message {
  margin-top: 15px;
  font-size: 14px;
}

.custom-select {
  position: relative;
  background: var(--field-background);
  color: var(--field-text);
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
  cursor: pointer;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.custom-select:focus-within,
.custom-select.open {
  border-color: var(--field-border-focus);
  box-shadow: var(--field-focus-ring);
}

.custom-select .selected {
  padding: 12px 14px;
  color: var(--field-text);
}

.custom-select .options {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: var(--field-background);
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
  box-shadow: var(--card-shadow);

  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
}

.custom-select .options div {
  padding: 10px 14px;
  color: var(--field-text);
}

.custom-select .options div:hover {
  background: var(--color-accent-soft);
}

.custom-select.open .options {
  display: block;
}

/* IMAGE */
.contact-image {
  display: flex;
}

.contact-image img {
  width: 50%;
  max-width: 500px; 
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}