/* =========================================================
   EasyBookz — Refined Corporate Contact Page Stylesheet
   File: public/css/contact.css
   ========================================================= */

:root {
  /* Corporate Color Palette */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-dark: #0f172a;
  --bg-dark-surface: #1e293b;
  --bg-dark-card: #182238;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-teal: #0d9488;
  --accent-gold: #d97706;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-dark: #334155;
  
  /* Typography */
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout Dimensions */
  --max-width: 1140px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 20px 45px -10px rgba(15, 23, 42, 0.1), 0 10px 20px -5px rgba(15, 23, 42, 0.04);
}

/* Reset & Scope Defaults */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Page Section & Outer Margins */
.contact-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px); /* Centers vertically between header and footer */
  padding: 56px 24px;
  background-color: var(--bg-primary);
}

.contact-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Main Two-Tone Card Container */
.contact-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

/* =========================================================
   Left Panel (Dark Corporate Branding)
   ========================================================= */

.contact-left-panel {
  display: flex;
  flex-direction: column;
  padding: 44px 40px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.15), transparent 45%),
    var(--bg-dark);
  color: var(--text-light);
}

.contact-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.contact-eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background-color: var(--accent-gold);
  border-radius: 2px;
}

.contact-left-panel h1 {
  margin: 0;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.contact-left-panel h1 span {
  display: block;
  margin-top: 4px;
  color: #93c5fd;
}

.contact-left-description {
  margin: 16px 0 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.65;
}

.contact-left-divider {
  width: 100%;
  height: 1px;
  margin: 28px 0 24px;
  background-color: var(--border-dark);
}

.contact-detail {
  display: grid;
  gap: 5px;
  width: 100%;
  margin-bottom: 20px;
}

.contact-detail-label {
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.contact-detail a {
  width: fit-content;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.contact-detail a:hover {
  color: #93c5fd;
}

.contact-detail a span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.contact-detail a:hover span {
  transform: translateX(4px);
}

.contact-left-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  background: var(--bg-dark-card);
}

.contact-note-icon {
  display: flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.2);
  color: var(--accent-teal);
  font-size: 11px;
  font-weight: 800;
}

.contact-left-note p {
  margin: 0;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.6;
}

/* =========================================================
   Right Panel (Form Area)
   ========================================================= */

.contact-right-panel {
  padding: 44px 48px;
  background-color: var(--bg-surface);
}

.contact-form-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-form-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-blue);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.contact-form-heading h2 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.contact-required-note {
  color: var(--text-muted);
  font-size: 11px;
  white-space: nowrap;
}

/* Form Structural Layout */
.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.contact-field label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.required-star {
  color: #dc2626;
}

/* Form Controls */
.contact-field input,
.contact-field select,
.contact-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-field input,
.contact-field select {
  height: 42px;
  padding: 0 12px;
}

.contact-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%20475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}

.contact-field select:invalid,
.contact-field select option[disabled] {
  color: var(--text-muted);
}

.contact-field textarea {
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--text-muted);
}

.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover {
  border-color: #cbd5e1;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Submit Section */
.contact-form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}

.contact-form-bottom p {
  max-width: 290px;
  margin: 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.contact-submit-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border: none;
  border-radius: 8px;
  background-color: var(--accent-blue);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.contact-submit-button span {
  font-size: 15px;
  transition: transform 0.2s ease;
}

.contact-submit-button:hover {
  background-color: var(--accent-blue-hover);
  transform: translateY(-1px);
}

.contact-submit-button:hover span {
  transform: translateX(4px);
}

.contact-submit-button:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Alerts */
.contact-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.contact-alert strong,
.contact-alert span {
  display: block;
}

.contact-alert-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.contact-alert-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */

@media (max-width: 900px) {
  .contact-card {
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
  }

  .contact-left-panel {
    padding: 36px 28px;
  }

  .contact-left-panel h1 {
    font-size: 30px;
  }

  .contact-right-panel {
    padding: 36px 28px;
  }
}

@media (max-width: 520px) {
  .contact-section {
    padding: 32px 16px;
  }

  .contact-left-panel {
    padding: 28px 20px;
  }

  .contact-right-panel {
    padding: 28px 20px;
  }

  .contact-form-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .contact-form-bottom p {
    max-width: none;
  }

  .contact-submit-button {
    width: 100%;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  .contact-submit-button span,
  .contact-detail a span {
    transition: none !important;
    transform: none !important;
  }
}