/* =========================================================================
   V&D TECH — CONTACT PAGE STYLESHEET (contact.css)
   Loaded after style.css. Contains Contact-page-specific layout and styles.
   Tokens, global layout, nav, loader, and footer live in style.css.
   ========================================================================= */

/* Custom color tokens mapping to resolve inline styles and add accents */
:root {
  --color-white: var(--surface);
  --color-gold: var(--accent);
}

/* -------------------------------------------------------------------------
   Grids & Layout utilities
   ------------------------------------------------------------------------- */
.grid-2-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

/* -------------------------------------------------------------------------
   Page Header / Contact Hero
   ------------------------------------------------------------------------- */
.contact-hero {
  padding: 200px 0 120px;
  position: relative;
  overflow: hidden;
}

.contact-hero .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.contact-hero .breadcrumbs a {
  color: var(--muted);
  transition: color 250ms var(--ease);
}

.contact-hero .breadcrumbs a:hover {
  color: var(--accent);
}

.contact-hero .breadcrumbs .divider {
  display: inline-flex;
  opacity: 0.5;
  align-items: center;
}

.contact-hero .breadcrumbs .current {
  color: var(--accent);
}

.contact-hero .page-title {
  font-size: clamp(38px, 5vw, 64px);
  color: var(--surface);
  max-width: 24ch;
  margin-bottom: 24px;
  line-height: 1.15;
}

.contact-hero .page-desc {
  color: rgba(236, 231, 223, 0.75);
  font-size: 17.5px;
  line-height: 1.8;
  max-width: 46ch;
  margin-bottom: 0;
}

/* Primary buttons in dark header section */
.sec-navy .btn-primary {
  background: var(--surface);
  color: var(--primary);
}

.sec-navy .btn-primary:hover {
  background: var(--bg);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Bounce animation for scroll indicator */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* -------------------------------------------------------------------------
   Contact Grid & Side Info Column
   ------------------------------------------------------------------------- */
.contact-layout-section {
  padding: var(--section-space) 0;
  position: relative;
  overflow: hidden;
}

.sec-black {
  background: var(--primary);
  color: var(--surface);
}

.sec-black .fine-grid {
  display: none;
}

.sec-black .section-title,
.sec-black h2,
.sec-black h3,
.sec-black h4 {
  color: var(--surface);
}

.sec-black p {
  color: rgba(236, 231, 223, 0.75);
}

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

.contact-info-col .section-title {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 24px;
}

.contact-info-lead {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(236, 231, 223, 0.85) !important;
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.contact-method-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: rgba(236, 231, 223, 0.03);
  border: 1px solid rgba(236, 231, 223, 0.08);
  border-radius: var(--radius-md);
  transition: transform 350ms var(--ease), border-color 350ms var(--ease), background-color 350ms var(--ease);
}

.contact-method-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: rgba(236, 231, 223, 0.06);
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(236, 231, 223, 0.06);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 350ms var(--ease), color 350ms var(--ease);
}

.contact-method-card:hover .contact-method-icon {
  background: var(--accent);
  color: var(--primary);
}

.contact-method-icon i,
.contact-method-icon svg {
  width: 20px;
  height: 20px;
}

.contact-method-details h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--surface);
  margin-bottom: 6px;
  margin-top: 0;
}

.contact-method-details p,
.contact-method-details a {
  font-size: 16px;
  color: rgba(236, 231, 223, 0.75);
  transition: color 250ms var(--ease);
  line-height: 1.5;
  margin: 0;
}

.contact-method-details a:hover {
  color: var(--accent);
}

.contact-checklist-card {
  padding: 32px;
  background: rgba(142, 130, 120, 0.05);
  border: 1px dashed rgba(236, 231, 223, 0.15);
  border-radius: var(--radius-lg);
}

.checklist-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  margin-top: 0;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checklist-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: rgba(236, 231, 223, 0.75);
  line-height: 1.5;
}

.checklist-item i,
.checklist-item svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* -------------------------------------------------------------------------
   Form Panel & Controls
   ------------------------------------------------------------------------- */
.form-panel {
  background: rgba(236, 231, 223, 0.03);
  border: 1px solid rgba(236, 231, 223, 0.08);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-header {
  margin-bottom: 36px;
}

.form-header h3 {
  font-size: 28px;
  margin-bottom: 8px;
  margin-top: 0;
}

.form-header p {
  font-size: 15px;
  color: rgba(236, 231, 223, 0.65);
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(236, 231, 223, 0.6);
  transition: color 250ms var(--ease);
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(5, 16, 26, 0.4);
  border: 1px solid rgba(236, 231, 223, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--surface);
  transition: border-color 300ms var(--ease), background-color 300ms var(--ease), box-shadow 300ms var(--ease);
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(236, 231, 223, 0.35);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(5, 16, 26, 0.6);
  box-shadow: 0 0 0 3px rgba(142, 130, 120, 0.15);
}

.form-group:focus-within .form-label {
  color: var(--accent);
}

.form-select option {
  background: var(--primary);
  color: var(--surface);
}

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

/* Submit Button & Spinner */
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  background: var(--surface);
  color: var(--primary);
  border: none;
  transition: background 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.submit-btn:hover {
  background: var(--bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.submit-btn:disabled {
  background: var(--secondary);
  color: var(--muted);
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.submit-btn i,
.submit-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 300ms var(--ease);
}

.submit-btn:hover:not(:disabled) i,
.submit-btn:hover:not(:disabled) svg {
  transform: translateX(4px);
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(5, 16, 26, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.submit-btn.sending .btn-spinner {
  display: inline-block;
}

.submit-btn.sending i,
.submit-btn.sending svg {
  display: none;
}

.form-note {
  font-size: 12px;
  color: rgba(236, 231, 223, 0.5);
  text-align: center;
  margin: 0;
}

.form-note span {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}

.form-note span:hover {
  color: var(--surface);
}

/* Submission feedback notification */
.form-status {
  display: none;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  line-height: 1.5;
  margin-top: 16px;
  text-align: center;
}

.form-status.success {
  display: block;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #2ecc71;
}

.form-status.error {
  display: block;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

/* -------------------------------------------------------------------------
   Responsive breakpoints
   ------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .grid-2-col,
  .contact-grid {
    gap: 48px;
  }
}

@media (max-width: 992px) {
  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .contact-hero .hero-visual {
    margin-top: 32px;
  }
  
  .contact-hero .hero-visual .vd-card {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 140px 0 80px;
  }
  
  .form-panel {
    padding: 32px 24px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-actions .btn {
    justify-content: center;
  }
}
