/**
 * FilmHütte Contact Modal Styles
 * Dark, modern, highly responsive & accessible
 */

.fh-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fh-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.fh-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fh-modal-dialog {
  position: relative;
  width: 92%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  background: #1a1a1e;
  border: 1px solid #33333d;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #fff;
  font-family: var(--_typography---font-family--font-primary, sans-serif);
}

.fh-modal.is-active .fh-modal-dialog {
  transform: translateY(0) scale(1);
}

.fh-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #bbb;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.fh-modal-close:hover {
  background: rgba(237, 128, 60, 0.2);
  color: #ed803c;
  transform: rotate(90deg);
}

.fh-modal-header {
  margin-bottom: 24px;
}

.fh-modal-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ed803c;
  margin-bottom: 6px;
}

.fh-modal-title {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.fh-modal-desc {
  font-size: 14px;
  color: #a0a0ab;
  line-height: 1.5;
  margin: 0;
}

.fh-form-group {
  margin-bottom: 18px;
}

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

.fh-form-row .fh-form-group {
  flex: 1;
}

.fh-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #c5c5d2;
  margin-bottom: 6px;
}

.fh-label span {
  color: #ed803c;
}

.fh-input,
.fh-select,
.fh-textarea {
  width: 100%;
  background: #111114;
  border: 1px solid #2e2e38;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: #fff;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fh-input:focus,
.fh-select:focus,
.fh-textarea:focus {
  outline: none;
  border-color: #ed803c;
  box-shadow: 0 0 0 3px rgba(237, 128, 60, 0.2);
}

.fh-textarea {
  resize: vertical;
  min-height: 90px;
}

.fh-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 22px;
}

.fh-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #ed803c;
  cursor: pointer;
}

.fh-checkbox-label {
  font-size: 12px;
  color: #8e8e9c;
  line-height: 1.45;
  cursor: pointer;
}

.fh-checkbox-label a {
  color: #ed803c;
  text-decoration: underline;
}

.fh-submit-btn {
  width: 100%;
  background: #ed803c;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 8px 20px rgba(237, 128, 60, 0.35);
}

.fh-submit-btn:hover {
  background: #f49254;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(237, 128, 60, 0.45);
}

.fh-submit-btn:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .fh-modal-dialog {
    padding: 26px 20px;
  }
  .fh-form-row {
    flex-direction: column;
    gap: 0;
  }
  .fh-modal-title {
    font-size: 22px;
  }
}
