/*
Theme Name: Car Sales Pro
Description: Professional car sales website theme with dark-blue color scheme
Version: 1.0
Author: Your Name
*/

/* Updated to match Next.js original design exactly */
/*tks*/
.alert{padding:12px 16px;border-radius:8px;margin:12px 0;}
.alert-success{background:#e7f7ee;border:1px solid #bdebcf;color:#116736;}
.alert-error{background:#feecec;border:1px solid #f5b4b4;color:#8a1f1f;}

.thankyou-card{
  max-width: 880px;
  margin: 40px auto;
  padding: 28px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  text-align: center;
}
.ty-icon{
  color: #18a058; /* xanh xác nhận */
  display: inline-flex;
  background: #e6f6ec;
  border-radius: 999px;
  padding: 10px;
  margin-bottom: 8px;
}
.ty-title{
  font-size: clamp(24px, 4vw, 32px);
  margin: 6px 0 6px;
  font-weight: 700;
}
.ty-subtitle{
  color: #555;
  margin: 0 0 18px;
}
.ty-heading{
  font-size: 18px;
  margin: 18px 0 8px;
  font-weight: 700;
}

/* Danh sách bước đẹp hơn */
.ty-steps{
  list-style: none;
  padding: 0;
  margin: 8px auto 18px;
  max-width: 640px;
  text-align: left;
}
.ty-steps li{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px dashed #eee;
}
.ty-steps li:first-child{ border-top: none; }
.ty-steps li::before{
  content: "✓";
  flex: 0 0 24px;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: #e6f6ec;
  color: #18a058;
  font-weight: 700;
  margin-top: 2px;
}

/* Nút hành động (tận dụng sẵn .btn .btn-primary nếu theme đã có) */
.ty-actions{
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 12px;
}
.ty-actions .btn{
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.ty-actions .btn-primary{ background:#18a058; border:1px solid #18a058; color:#fff; }
.ty-actions .btn-primary:hover{ filter: brightness(.95); }
.ty-actions .ty-outline{
  background:#fff; border:1px solid #ddd; color:#333;
}
.ty-actions .ty-outline:hover{ background:#f8f8f8; }

/* Responsive */
@media (max-width: 480px){
  .thankyou-card{ padding: 20px; }
  .ty-steps{ font-size: 15px; }
}


/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Original Next.js color scheme */
  --primary: #1e3a8a; /* Dark blue */
  --secondary: #3b82f6; /* Sky blue */
  --accent: #60a5fa; /* Light blue */
  --background: #ffffff;
  --foreground: #1f2937;
  --muted: #f8fafc;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --card: #ffffff;
  --card-foreground: #1f2937;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;

  /* Border radius */
  --radius: 0.5rem;
}

/* Base typography */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.min-h-screen {
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

/* Header styles */
.site-header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-4) 0;
}

.site-logo img {
  height: 50px;
  width: auto;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-6);
  margin: 0;
  padding: 0;
}

.main-navigation a {
  font-weight: 500;
  padding: var(--spacing-2) var(--spacing-4);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  color: var(--foreground);
}

.main-navigation a:hover,
.main-navigation a.current {
  background-color: var(--primary);
  color: white;
}

/* Fixed header button contrast - ensure proper colors for header context */
.header-actions .btn {
  font-size: 1rem;
  padding: var(--spacing-3) var(--spacing-6);
}

.header-actions .btn-primary {
  background-color: var(--primary);
  color: white;
}

.header-actions .btn-primary:hover {
  background-color: #1e40af;
  color: white;
}

/* Hero Section - matching Next.js exactly */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url("assets/images/luxury-car-showroom.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(30, 58, 138, 0.7); /* primary/70 */
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-6);
  text-wrap: balance;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-8);
  text-wrap: pretty;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  justify-content: center;
}

/* Ensure hero buttons have proper styling in hero context */
.hero-actions .btn-secondary {
  background-color: var(--secondary);
  color: white;
}

.hero-actions .btn-secondary:hover {
  background-color: rgba(59, 130, 246, 0.9);
  color: white;
}

.hero-actions .btn-outline-white {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.hero-actions .btn-outline-white:hover {
  background-color: white;
  color: var(--primary);
}

@media (min-width: 640px) {
  .hero-content h1 {
    font-size: 4.5rem;
  }

  .hero-content p {
    font-size: 1.5rem;
  }

  .hero-actions {
    flex-direction: row;
  }
}

/* Button styles - matching Next.js exactly */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 1.125rem;
  font-weight: 500;
  padding: var(--spacing-4) var(--spacing-8);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: #1e40af;
  color: white;
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: rgba(59, 130, 246, 0.9);
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-outline-white {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.btn-outline-white:hover {
  background-color: white;
  color: var(--primary);
}

.btn-full {
  width: 100%;
}

/* Vehicle Showcase Section */
.vehicles-section {
  padding: var(--spacing-20) 0;
  background-color: rgba(248, 250, 252, 0.3); /* muted/30 */
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-16);
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--spacing-4);
  text-wrap: balance;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin: 0 auto;
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 3rem;
  }
}

/* Vehicle Grid */
.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-8);
}

@media (min-width: 768px) {
  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .vehicle-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Vehicle Card */
.vehicle-card {
  background-color: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.vehicle-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.vehicle-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vehicle-card:hover .vehicle-image img {
  transform: scale(1.05);
}

.vehicle-info {
  padding: var(--spacing-6);
}

.vehicle-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-2);
}

.vehicle-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.vehicle-price {
  background-color: var(--muted);
  color: var(--foreground);
  padding: var(--spacing-1) var(--spacing-3);
  border-radius: var(--radius);
  font-size: 1.125rem;
  font-weight: 700;
}

.vehicle-description {
  color: var(--muted-foreground);
  margin-bottom: var(--spacing-4);
  font-size: 1rem;
}

.vehicle-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-4);
}

.feature-badge {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: var(--spacing-1) var(--spacing-2);
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.vehicle-actions {
  display: flex;
  gap: var(--spacing-2);
}

.vehicle-actions .btn {
  flex: 1;
  font-size: 1rem;
  padding: var(--spacing-3) var(--spacing-4);
}

/* Test Drive Section */
.test-drive-section {
  padding: var(--spacing-20) 0;
  background-color: var(--muted);
}

.test-drive-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-8);
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .test-drive-content {
    grid-template-columns: 1fr 2fr;
  }
}

.test-drive-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-4);
  color: var(--foreground);
}

.test-drive-info ul {
  list-style: none;
  padding: 0;
}

.test-drive-info li {
  padding: var(--spacing-2) 0;
  color: var(--foreground);
  font-weight: 500;
}

/* Form styles */
.test-drive-form {
  background-color: var(--card);
  padding: var(--spacing-8);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-4);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: var(--spacing-4);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-2);
  font-weight: 500;
  color: var(--foreground);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

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

/* Responsive design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.125rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .test-drive-form {
    padding: var(--spacing-6);
  }

  /* Responsive header */
  .header-content {
    flex-direction: column;
    gap: var(--spacing-4);
  }

  .main-navigation ul {
    flex-direction: column;
    gap: var(--spacing-2);
    width: 100%;
    text-align: center;
  }

  /* Ensure mobile header buttons maintain proper contrast */
  .header-actions {
    width: 100%;
    text-align: center;
  }
}

/* Utility classes */
.text-center {
  text-align: center;
}
.text-balance {
  text-wrap: balance;
}
.text-pretty {
  text-wrap: pretty;
}

/* Footer styles */
.site-footer {
  background-color: var(--primary);
  color: white;
  padding: var(--spacing-16) 0 var(--spacing-8);
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-8);
  margin-bottom: var(--spacing-8);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-4);
  color: white;
}

.footer-section p {
  margin-bottom: var(--spacing-2);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: var(--spacing-2);
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--spacing-6);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}