/* File: nowaste-home-assets.css */
.nowaste-home-wrapper {
  --black: #000000;
  --light-blue: #00c8ff;
  --cyan: #00e5ff;
  --white: #ffffff;
  --dark-blue: #0077b6;
  --accent-yellow: #ffdd00;
  --bg-deep: #050816;
  --bg-section: #0a1128;
  --text-muted: #9bb0c9;
  --border-soft: rgba(0, 200, 255, 0.18);
  --grad-hero: radial-gradient(circle at 20% 20%, rgba(0, 200, 255, 0.15), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(0, 119, 182, 0.25), transparent 55%),
    linear-gradient(180deg, #02050f 0%, #050816 60%, #060c1f 100%);
  --shadow-glow: 0 0 40px rgba(0, 200, 255, 0.25);
  --radius-lg: 20px;
  --radius-md: 12px;
  --container: 1200px;

  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-deep);
  color: var(--white);
  line-height: 1.6;
}

/* Khóa toàn bộ Form */
.wpcf7-form.is-locked {
  pointer-events: none !important; /* Chặn hoàn toàn mọi click chuột */
}

/* Style ép buộc cho các field bị khóa */
.is-disabled-field {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  /* background-color: rgba(200, 200, 200, 0.1) !important;  */
  pointer-events: none !important;
}

/* Xử lý riêng cho vùng Upload Custom */
.upload-zone.disabled {
  opacity: 0.5;
  border-color: #555 !important;
  background-color: rgba(0, 0, 0, 0.1);
  pointer-events: none !important;
}

/* Làm mờ nút Submit */
.wpcf7-form.is-locked .btn-submit {
  background-color: #666 !important;
  color: #ccc !important;
  border-color: #666 !important;
}

.nowaste-home-wrapper h1,
.nowaste-home-wrapper h2,
.nowaste-home-wrapper h3,
.nowaste-home-wrapper h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--white);
}

.nowaste-home-wrapper a {
  color: var(--cyan);
  text-decoration: none;
}
.nowaste-home-wrapper .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.nowaste-home-wrapper .text-yellow {
  color: var(--accent-yellow);
}
.nowaste-home-wrapper .text-cyan {
  color: var(--cyan);
}

/* Decorative starfield */
.nowaste-home-wrapper .stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 200px 80px, rgba(0, 229, 255, 0.7), transparent),
    radial-gradient(1px 1px at 500px 50px, rgba(255, 221, 0, 0.6), transparent);
  background-size: 800px 600px;
  background-repeat: repeat;
  opacity: 0.6;
}

/* BUTTONS */
.nowaste-home-wrapper .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.nowaste-home-wrapper .btn-primary {
  background: var(--accent-yellow);
  color: var(--black);
}
.nowaste-home-wrapper .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 221, 0, 0.35);
}
.nowaste-home-wrapper .btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--cyan);
}
.nowaste-home-wrapper .btn-outline:hover {
  background: var(--cyan);
  color: var(--black);
}

/* HERO SECTION */
.nowaste-home-wrapper .hero {
  position: relative;
  background: var(--grad-hero);
  padding: 120px 0 100px;
  overflow: hidden;
}
.nowaste-home-wrapper .hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.nowaste-home-wrapper .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0, 200, 255, 0.12);
  border: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 24px;
}
.nowaste-home-wrapper .eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-yellow);
  box-shadow: 0 0 12px var(--accent-yellow);
}
.nowaste-home-wrapper .hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}
.nowaste-home-wrapper .hero h1 .accent {
  background: linear-gradient(90deg, var(--cyan), var(--accent-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nowaste-home-wrapper .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}
.nowaste-home-wrapper .hero-meta .item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid var(--cyan);
}
.nowaste-home-wrapper .stat-strip {
  position: relative;
  z-index: 2;
  margin-top: 80px;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.06), rgba(0, 119, 182, 0.06));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.nowaste-home-wrapper .stat .num {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-yellow);
  font-family: 'Space Grotesk';
}

/* SECTION BASE */
.nowaste-home-wrapper section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}
.nowaste-home-wrapper .section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}
.nowaste-home-wrapper .section-head .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.nowaste-home-wrapper .section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 16px;
  color: var(--white);
}

/* ABOUT */
.nowaste-home-wrapper .about {
  background: var(--bg-section);
}
.nowaste-home-wrapper .about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.nowaste-home-wrapper .about-card {
  background: linear-gradient(180deg, rgba(0, 200, 255, 0.05), transparent);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.25s;
}
.nowaste-home-wrapper .about-card .icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--dark-blue));
  color: var(--black);
  font-size: 22px;
  margin-bottom: 18px;
}

/* TIMELINE */
.nowaste-home-wrapper .timeline {
  background: var(--bg-section);
}
.nowaste-home-wrapper .timeline-wrap {
  position: relative;
  padding-left: 0;
}
.nowaste-home-wrapper .timeline-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--accent-yellow));
  transform: translateX(-50%);
}
.nowaste-home-wrapper .tl-item {
  position: relative;
  width: 50%;
  padding: 18px 40px;
}
.nowaste-home-wrapper .tl-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.nowaste-home-wrapper .tl-item:nth-child(even) {
  left: 50%;
}
.nowaste-home-wrapper .tl-card {
  display: inline-block;
  text-align: left;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(0, 200, 255, 0.06);
  border: 1px solid var(--border-soft);
  max-width: 420px;
}

/* PRIZES */
.nowaste-home-wrapper .prizes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.nowaste-home-wrapper .prize {
  padding: 30px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(0, 200, 255, 0.06), transparent);
  border: 1px solid var(--border-soft);
  text-align: center;
}
.nowaste-home-wrapper .prize.first {
  background: linear-gradient(180deg, rgba(255, 221, 0, 0.18), rgba(255, 221, 0, 0.02));
  border-color: rgba(255, 221, 0, 0.5);
}
.nowaste-home-wrapper .prize .amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-yellow);
  font-family: 'Space Grotesk';
}

/* SUBMIT STATUS */
.nowaste-home-wrapper .submit-section {
  background: linear-gradient(180deg, #060c1f 0%, #050816 100%);
}
.nowaste-home-wrapper .submit-card {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(5, 8, 22, 0.85);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.nowaste-home-wrapper .countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  width: 100%;
}
.nowaste-home-wrapper .cd-cell {
  background: rgba(0, 200, 255, 0.06);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 15px 4px;
  text-align: center;
  min-width: 0;
}
.nowaste-home-wrapper .cd-cell .v {
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-size: 28px;
  color: var(--accent-yellow);
  line-height: 1;
}
.nowaste-home-wrapper .cd-cell .l {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
}

.nowaste-home-wrapper .judges {
  background: var(--bg-section);
}
.nowaste-home-wrapper .judges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.nowaste-home-wrapper .judge {
  text-align: center;
  padding: 26px 18px;
  border-radius: var(--radius-lg);
  background: rgba(0, 200, 255, 0.04);
  border: 1px solid var(--border-soft);
  transition: transform 0.25s;
}

.nowaste-home-wrapper .judge:hover {
  transform: translateY(-4px);
}
.nowaste-home-wrapper .judge .avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--cyan), var(--dark-blue));
  display: grid;
  place-items: center;
  color: var(--black);
  font-weight: 700;
  font-size: 24px;
  font-family: 'Space Grotesk';
  overflow: hidden;
}
.nowaste-home-wrapper .judge .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Đảm bảo ảnh lấp đầy vòng tròn mà không bị méo tỷ lệ */
  /* border-radius: 50%; Bo tròn chính bức ảnh để viền mượt mà hơn */
}

.nowaste-home-wrapper .judge h4 {
  font-size: 16px;
  margin-bottom: 4px;
}
.nowaste-home-wrapper .judge p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .nowaste-home-wrapper .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nowaste-home-wrapper .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .nowaste-home-wrapper .about-grid,
  .nowaste-home-wrapper .prizes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nowaste-home-wrapper .timeline-wrap::before {
    left: 18px;
  }
  .nowaste-home-wrapper .tl-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 48px;
    padding-right: 8px;
  }
}

@media (max-width: 600px) {
  .nowaste-home-wrapper .about-grid,
  .nowaste-home-wrapper .topics-grid,
  .nowaste-home-wrapper .prizes-grid,
  .nowaste-home-wrapper .judges-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive cho Mobile (Dưới 480px) */
@media (max-width: 480px) {
  .nowaste-home-wrapper .countdown {
    /* Chuyển thành 1 cột duy nhất để các ô xếp chồng lên nhau */
    grid-template-columns: 1fr;
    gap: 10px; /* Khoảng cách giữa các hàng dọc */
  }

  .nowaste-home-wrapper .cd-cell {
    /* Tăng padding một chút để ô nhìn cân đối hơn khi ở dạng hàng dọc */
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .nowaste-home-wrapper .cd-cell .v {
    font-size: 32px; /* Tăng lại kích thước số vì diện tích hiển thị đã rộng hơn */
  }

  .nowaste-home-wrapper .cd-cell .l {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
}
