/* brand.css - Professional Brand Integration Page with Fixed Dropdown */

/* Brand Hero */
.brand-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--accent-color);
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.5;
}

.hero-decoration {
  width: 80px;
  height: 2px;
  background: var(--primary-color);
  margin: 0 auto 40px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--secondary-color);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 300;
}

/* Brand Stats Section */
.brand-stats {
  background: rgba(255, 255, 255, 0.02);
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}

.kpi-card {
  text-align: center;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.kpi-card:nth-child(1) { animation-delay: 0.2s; }
.kpi-card:nth-child(2) { animation-delay: 0.3s; }
.kpi-card:nth-child(3) { animation-delay: 0.4s; }
.kpi-card:nth-child(4) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kpi-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.kpi-value {
  font-size: 2.5rem;
  font-weight: 100;
  color: var(--primary-color);
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.kpi-label {
  color: var(--medium-gray);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.stats-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 60px;
}

.audience-card,
.geo-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 50px 40px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

.audience-card h3,
.geo-card h3 {
  margin-bottom: 35px;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 300;
}

.bar-list {
  list-style: none;
}

.bar-list li {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.bar-label {
  width: 60px;
  font-size: 14px;
  color: var(--accent-color);
  font-weight: 500;
}

.bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 0 20px;
  position: relative;
  overflow: hidden;
}

.bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--pct);
  background: var(--primary-color);
  border-radius: 4px;
  transition: width 1s ease;
}

.bar span {
  font-size: 13px;
  color: var(--primary-color);
  font-weight: 500;
  min-width: 50px;
}

.geo-grid {
  display: grid;
  gap: 15px;
}

.geo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.geo-item:last-child {
  border-bottom: none;
}

.geo-market {
  color: var(--accent-color);
  font-size: 14px;
}

.geo-pct {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 14px;
}

.geo-rest {
  opacity: 0.8;
}

.footnote {
  font-size: 12px;
  color: var(--medium-gray);
  margin-top: 25px;
  font-style: italic;
  line-height: 1.4;
}

/* Video Gallery Section */
.video-gallery {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 80px;
}

.video-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.video-card:nth-child(1) { animation-delay: 0.2s; }
.video-card:nth-child(2) { animation-delay: 0.3s; }
.video-card:nth-child(3) { animation-delay: 0.4s; }
.video-card:nth-child(4) { animation-delay: 0.5s; }
.video-card:nth-child(5) { animation-delay: 0.6s; }
.video-card:nth-child(6) { animation-delay: 0.7s; }

.video-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 225px;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition);
  opacity: 0.9;
}

.video-card:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

.play-button svg {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.video-info {
  padding: 30px;
}

.video-info h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 15px;
  line-height: 1.3;
}

.video-info p {
  color: var(--accent-color);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background: var(--dark-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.video-modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover,
.modal-close:focus {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
  outline: none;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: var(--dark-bg);
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
}

/* Packages Section */
.packages {
  padding: 100px 0;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 80px;
}

.package-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 50px 40px;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.package-card:nth-child(1) { animation-delay: 0.8s; }
.package-card:nth-child(2) { animation-delay: 0.9s; }
.package-card:nth-child(3) { animation-delay: 1.0s; }

.package-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.package-header {
  text-align: center;
  margin-bottom: 30px;
}

.package-header h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 300;
}

.package-duration {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  border: 1px solid var(--border-color);
}

.package-desc {
  color: var(--accent-color);
  margin-bottom: 30px;
  line-height: 1.6;
  text-align: center;
  font-size: 15px;
}

.package-features {
  list-style: none;
  text-align: left;
}

.package-features li {
  color: var(--secondary-color);
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  line-height: 1.5;
  font-size: 14px;
}

.package-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Stats Section */
.stats-section {
  background: rgba(255, 255, 255, 0.02);
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
}

.stats-header {
  text-align: center;
  margin-bottom: 80px;
}

.stats-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 200;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.stats-intro {
  color: var(--accent-color);
  font-size: 1.1rem;
  margin-top: 15px;
  font-weight: 300;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.stat-card {
  text-align: center;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 1.2s; }
.stat-card:nth-child(2) { animation-delay: 1.3s; }
.stat-card:nth-child(3) { animation-delay: 1.4s; }
.stat-card:nth-child(4) { animation-delay: 1.5s; }

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 200;
  color: var(--primary-color);
  margin-bottom: 12px;
  display: block;
}

.stat-label {
  color: var(--medium-gray);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Contact Form Section */
.contact-form-section {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-color);
}

.form-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.form-header h2 {
  margin-bottom: 25px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 200;
  letter-spacing: -1px;
}

.form-header p {
  color: var(--accent-color);
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 300;
}

/* Enhanced Brand Form Styles */
.contact-form-section .contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  padding: 60px 50px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.contact-form-section .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.contact-form-section .form-grid label {
  display: flex;
  flex-direction: column;
}

.contact-form-section .form-grid label.full {
  grid-column: 1 / -1;
}

.contact-form-section .form-grid label span {
  color: var(--accent-color);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Enhanced Input, Select, and Textarea styles */
.contact-form-section .form-grid input,
.contact-form-section .form-grid select,
.contact-form-section .form-grid textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 15px 18px;
  font-size: 16px;
  color: var(--primary-color);
  font-family: inherit;
  transition: var(--transition);
  width: 100%;
}

/* Fixed Select Dropdown Styling for Brand Page */
.contact-form-section .form-grid select {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary-color);
  cursor: pointer;
  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='white' 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 15px center;
  background-size: 16px;
  padding-right: 45px;
}

.contact-form-section .form-grid select option {
  background: var(--medium-bg, #1a1a1a);
  color: var(--primary-color, #ffffff);
  padding: 12px 15px;
  border: none;
  font-size: 16px;
  line-height: 1.4;
}

.contact-form-section .form-grid select option:checked,
.contact-form-section .form-grid select option:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--primary-color, #ffffff);
}

.contact-form-section .form-grid select option[value=""] {
  color: var(--medium-gray, #999999);
  font-style: italic;
}

/* Focus states */
.contact-form-section .form-grid input:focus,
.contact-form-section .form-grid select:focus,
.contact-form-section .form-grid textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
}

.contact-form-section .form-grid select:focus {
  background: rgba(255, 255, 255, 0.12);
}

.contact-form-section .form-grid input::placeholder,
.contact-form-section .form-grid textarea::placeholder {
  color: var(--medium-gray);
  opacity: 0.8;
}

.contact-form-section .form-grid textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

/* Error states */
.contact-form-section .form-grid input.error,
.contact-form-section .form-grid select.error,
.contact-form-section .form-grid textarea.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Button styles */
.contact-form-section .btn {
  background: var(--primary-color);
  color: var(--dark-bg);
  border: none;
  padding: 18px 32px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
}

.contact-form-section .btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact-form-section .btn:disabled {
  background: var(--medium-gray);
  cursor: not-allowed;
  transform: none;
  opacity: 0.6;
}

.contact-form-section .form-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  padding: 20px;
  border-radius: 4px;
  text-align: center;
  margin-top: 20px;
  font-weight: 500;
}

/* Video Error Styles */
.video-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 300px;
  background: var(--medium-bg);
  color: var(--medium-gray);
}

.error-content {
  text-align: center;
  padding: 40px;
  max-width: 400px;
}

.error-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.error-content h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 400;
}

.error-content p {
  color: var(--accent-color);
  line-height: 1.5;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .stats-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .packages-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
  
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .brand-hero {
    padding: 0 15px;
    min-height: 60vh;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .audience-card,
  .geo-card {
    padding: 40px 30px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 60px;
  }
  
  .video-card {
    margin: 0 auto;
    max-width: 400px;
  }
  
  .video-info {
    padding: 25px;
  }
  
  .modal-content {
    width: 95%;
    margin: 0 10px;
  }
  
  .modal-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
  }
  
  .packages-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .package-card {
    padding: 40px 30px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .brand-stats,
  .video-gallery,
  .packages,
  .stats-section,
  .contact-form-section {
    padding: 80px 0;
  }
  
  .contact-form-section .contact-form {
    padding: 40px 30px;
  }
  
  .contact-form-section .form-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .contact-form-section .form-grid input,
  .contact-form-section .form-grid select,
  .contact-form-section .form-grid textarea {
    padding: 12px 15px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .contact-form-section .form-grid select {
    padding-right: 40px;
    background-size: 14px;
    background-position: right 12px center;
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    gap: 20px;
  }
  
  .kpi-card {
    padding: 30px 20px;
  }
  
  .kpi-value {
    font-size: 2rem;
  }
  
  .gallery-grid {
    gap: 20px;
  }
  
  .video-info {
    padding: 20px;
  }
  
  .video-info h3 {
    font-size: 1.2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .package-card {
    padding: 30px 25px;
  }
  
  .audience-card,
  .geo-card {
    padding: 30px 25px;
  }
  
  .contact-form-section .contact-form {
    padding: 30px 20px;
  }
  
  .contact-form-section .form-grid {
    gap: 20px;
  }
  
  .contact-form-section .btn {
    padding: 15px 25px;
    font-size: 15px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .contact-form-section .form-grid select {
    background: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
  }
  
  .contact-form-section .form-grid select option {
    background: #000000;
    color: #ffffff;
  }
  
  .contact-form-section .form-grid select option:checked,
  .contact-form-section .form-grid select option:hover {
    background: #ffffff;
    color: #000000;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .kpi-card,
  .audience-card,
  .geo-card,
  .package-card,
  .stat-card,
  .video-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .kpi-card:hover,
  .package-card:hover,
  .stat-card:hover,
  .video-card:hover {
    transform: none;
  }
  
  .bar::before {
    transition: none;
  }
}