/* ==========================================================================
   DREAM OF STROKES — CONTACT STUDIO & ARTISTS
   Obsidian Dark Luxury Theme | Human Professional Editorial Design
   Strictly Zero Golden Color | Zero AI Generic Templates
   ========================================================================== */

:root {
  --bg-deep: #0a0b0d;
  --bg-surface: rgba(16, 18, 23, 0.72);
  --bg-surface-elevated: rgba(22, 26, 34, 0.85);
  --border-line: rgba(255, 255, 255, 0.08);
  --border-line-hover: rgba(255, 255, 255, 0.22);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(30, 36, 50, 0.4) 0%, rgba(10, 11, 13, 0.98) 60%, #0a0b0d 100%),
    radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Page Outer Container (Strictly 40px Top Spacing Beneath Floating Nav) */
.contact-page-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 100px;
  box-sizing: border-box;
}

/* ==========================================================================
   1. EDITORIAL HEADER (Matches Blog & About Spacing Exactly)
   ========================================================================== */
.contact-hero-block {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 60px;
}

.contact-page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin: 0 0 16px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

.contact-page-lead {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
  margin: 0 auto;
  max-width: 740px;
}

/* ==========================================================================
   2. MAIN TWO-COLUMN WORKSPACE: FORM + ARTIST DIRECTORY
   ========================================================================== */
.contact-main-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: stretch;
  margin-bottom: 90px;
}

/* Commission & Inquiry Form Card */
.contact-form-pane {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 6px;
  padding: 44px 40px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-form-pane:hover {
  border-color: var(--border-line-hover);
}

.form-pane-header {
  margin-bottom: 28px;
}

.form-pane-kicker {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  display: block;
}

.form-pane-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
}

.commission-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 20px;
}

.form-group-message {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group-message .form-textarea {
  flex: 1;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 400;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(10, 12, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #ffffff;
  background: rgba(14, 17, 24, 0.95);
}

.form-select {
  appearance: none;
  -webkit-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='%2394a3b8' 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 14px center;
  background-size: 16px;
  cursor: pointer;
}

.form-select option {
  background: #0f1115;
  color: #ffffff;
}

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

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #0a0b0d;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: auto;
  transition: background 0.2s ease, transform 0.2s ease;
}

.form-submit-btn:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 4px;
}

/* ==========================================================================
   RIGHT COLUMN: DIRECT ARTIST STUDIO DIRECTORY
   ========================================================================== */
.contact-sidebar-pane {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.sidebar-artists-block {
  display: flex;
  flex-direction: column;
}

.sidebar-section-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.sidebar-section-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 18px;
}

.artist-contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.artist-row-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.artist-row-card:hover {
  border-color: var(--border-line-hover);
  background: var(--bg-surface-elevated);
  transform: translateX(4px);
}

.artist-thumb {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  background: #0f1115;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.artist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.artist-row-info {
  flex-grow: 1;
  min-width: 0;
}

.artist-row-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.artist-row-spec {
  font-size: 0.76rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-wa-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.artist-row-card:hover .artist-wa-icon-box {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
}

/* Studio Physical Info Box */
.studio-meta-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 6px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
}

.studio-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.studio-meta-icon {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-top: 3px;
  width: 18px;
  text-align: center;
}

.studio-meta-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.studio-meta-text strong {
  color: #ffffff;
  display: block;
  font-weight: 500;
  margin-bottom: 2px;
}

.studio-meta-text a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.studio-meta-text a:hover {
  color: #ffffff;
}

/* ==========================================================================
   3. FREQUENTLY ASKED QUESTIONS (Clean Editorial Accordion/Grid)
   ========================================================================== */
.contact-faq-section {
  margin-bottom: 80px;
}

.faq-editorial-header {
  margin-bottom: 36px;
}

.faq-editorial-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.faq-editorial-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 300;
}

.faq-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.faq-card-clean {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.faq-card-clean:hover {
  border-color: var(--border-line-hover);
}

.faq-card-clean.is-open {
  border-color: rgba(255, 255, 255, 0.22);
}

.faq-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.faq-card-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-card-header h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.faq-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.faq-card-clean.is-open .faq-icon {
  transform: rotate(180deg);
  color: #ffffff;
}

/* Collapsed by default */
.faq-card-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 26px;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.3s ease;
}

.faq-card-clean.is-open .faq-card-body {
  max-height: 500px;
  opacity: 1;
  padding: 0 26px 24px 26px;
}

.faq-card-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Flawless Mobile Viewports from 320px to 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
  }

  .contact-form-pane,
  .contact-sidebar-pane {
    height: auto;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .form-group-message .form-textarea {
    flex: initial;
    min-height: 120px;
  }

  .form-submit-btn {
    margin-top: 8px;
  }

  .studio-meta-box {
    margin-top: 0;
  }

  .faq-editorial-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .contact-page-wrapper {
    padding: 32px 16px 60px;
    width: 100%;
    box-sizing: border-box;
  }

  .contact-hero-block {
    margin-bottom: 32px;
  }

  .contact-page-title {
    font-size: clamp(1.8rem, 6vw, 2.3rem);
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .contact-page-lead {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .contact-form-pane {
    padding: 28px 20px;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  .form-pane-title {
    font-size: 1.45rem;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .form-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    box-sizing: border-box;
  }

  .contact-sidebar-pane {
    gap: 20px;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .sidebar-section-title {
    font-size: 1.35rem;
  }

  .artist-row-card {
    padding: 14px 16px;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .studio-meta-box {
    padding: 20px 18px;
    width: 100%;
    box-sizing: border-box;
  }

  .faq-editorial-header h2 {
    font-size: 1.6rem;
  }

  .faq-card-header {
    padding: 18px 18px;
  }

  .faq-card-header h3 {
    font-size: 1rem;
  }

  .faq-card-body {
    padding: 0 18px;
  }

  .faq-card-clean.is-open .faq-card-body {
    padding: 0 18px 20px 18px;
  }
}

@media (max-width: 480px) {
  .contact-page-wrapper {
    padding: 24px 12px 50px;
  }

  .contact-hero-block {
    margin-bottom: 24px;
  }

  .contact-page-title {
    font-size: 1.65rem;
    line-height: 1.22;
  }

  .contact-page-lead {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .contact-main-grid {
    gap: 24px;
    margin-bottom: 50px;
  }

  .contact-form-pane {
    padding: 22px 14px;
    border-radius: 8px;
  }

  .form-pane-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
  }

  .form-pane-title {
    font-size: 1.25rem;
    line-height: 1.28;
  }

  .form-pane-header {
    margin-bottom: 20px;
  }

  .commission-form {
    gap: 14px;
  }

  .form-label {
    font-size: 0.78rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 11px 13px;
    font-size: 0.88rem;
  }

  .form-submit-btn {
    padding: 12px 16px;
    font-size: 0.88rem;
  }

  .form-note {
    font-size: 0.74rem;
    line-height: 1.45;
  }

  .sidebar-section-title {
    font-size: 1.2rem;
  }

  .sidebar-section-subtitle {
    font-size: 0.82rem;
    margin-bottom: 14px;
  }

  .artist-row-card {
    padding: 12px 12px;
    gap: 10px;
  }

  .artist-thumb {
    width: 44px;
    height: 44px;
  }

  .artist-row-name {
    font-size: 0.95rem;
  }

  .artist-row-spec {
    font-size: 0.72rem;
  }

  .artist-wa-icon-box {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .studio-meta-box {
    padding: 16px 14px;
    gap: 14px;
  }

  .studio-meta-icon {
    font-size: 0.88rem;
    width: 16px;
  }

  .studio-meta-text {
    font-size: 0.82rem;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .contact-faq-section {
    margin-bottom: 50px;
  }

  .faq-editorial-header {
    margin-bottom: 24px;
  }

  .faq-editorial-header h2 {
    font-size: 1.35rem;
  }

  .faq-editorial-header p {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .faq-card-header {
    padding: 15px 14px;
    gap: 10px;
  }

  .faq-card-header h3 {
    font-size: 0.9rem;
    line-height: 1.38;
  }

  .faq-icon {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }

  .faq-card-body {
    padding: 0 14px;
  }

  .faq-card-clean.is-open .faq-card-body {
    padding: 0 14px 16px 14px;
  }

  .faq-card-body p {
    font-size: 0.84rem;
    line-height: 1.6;
  }
}
