/* ===== CONTACT MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 22, 40, 0.65);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: 480px; max-width: 100%;
  background: #FFFFFF;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.modal-overlay.is-open .modal-panel { transform: translateX(0); }

@media (max-width: 768px) {
  .modal-panel { width: 100%; }
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 0;
  flex-shrink: 0;
}
.modal-close {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: none; cursor: pointer;
  color: #4A90E2; border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { color: #0A1628; background: rgba(74,144,226,0.08); }
.modal-close svg { width: 20px; height: 20px; }

.modal-body {
  padding: 20px 28px 28px;
  flex: 1;
}
.modal-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px; font-weight: 600; color: #1A1A1A;
  letter-spacing: -0.02em; margin-bottom: 6px;
}
.modal-sub {
  font-size: 15px; color: #555555; line-height: 1.5;
  margin-bottom: 28px;
}

.modal-form { display: flex; flex-direction: column; gap: 16px; }
.modal-field { display: flex; flex-direction: column; gap: 5px; }
.modal-label {
  font-size: 12px; font-weight: 600; color: #1A1A1A;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.modal-input, .modal-textarea {
  padding: 11px 14px; border: 1px solid #D0D0D0; border-radius: 6px;
  font: inherit; font-size: 15px; color: #1A1A1A; background: #FAFAFA;
  transition: border-color 0.2s;
}
.modal-input:focus, .modal-textarea:focus { outline: none; border-color: #4A90E2; }
.modal-textarea { min-height: 80px; resize: vertical; }
.modal-input.form-input-error, .modal-textarea.form-input-error { border-color: #E8470A; }

.modal-submit {
  width: 100%; padding: 14px; border: none; border-radius: 6px;
  background: #FF6B35; color: #FFFFFF;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 4px;
}
.modal-submit:hover { background: #E85A28; transform: translateY(-1px); }
.modal-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.modal-success {
  text-align: center; padding: 40px 0;
}
.modal-success h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px; font-weight: 600; color: #1A1A1A;
  margin-bottom: 10px;
}
.modal-success p {
  font-size: 15px; color: #555555; line-height: 1.6; margin-bottom: 20px;
}
.modal-success a { color: #4A90E2; }
.modal-success-close {
  display: inline-block; padding: 10px 24px; border: 1px solid #D0D0D0;
  border-radius: 6px; font-size: 14px; font-weight: 500; color: #555555;
  cursor: pointer; background: none; transition: border-color 0.2s;
}
.modal-success-close:hover { border-color: #1A1A1A; color: #1A1A1A; }

body.modal-open { overflow: hidden; }
