/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #f8f8f8; /* Light background for the page */
  line-height: 1.6;
}

/* Fixed navigation bar spacing */
.page-contact__hero-contact-section,
.page-contact__methods-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__responsible-gaming-section {
  padding-top: 60px; /* Default padding, will be overridden for first section */
  padding-bottom: 60px;
  padding-left: 20px;
  padding-right: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Adjust padding for the very first section to avoid being hidden by fixed header */
.page-contact__hero-contact-section {
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
  background: linear-gradient(135deg, #FFF8DC, #E0FFFF); /* Light, welcoming gradient */
  text-align: center;
  border-bottom: 1px solid #eee;
}

.page-contact__hero-contact-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__hero-contact-title {
  font-size: 38px;
  color: #000080; /* Deep blue for titles */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__hero-contact-description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
  line-height: 1.8;
}

.page-contact__brand-name {
  font-weight: bold;
  color: #000080; /* Highlight brand name */
}

.page-contact__hero-contact-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

/* Contact Methods Section */
.page-contact__methods-section {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 60px 40px;
  text-align: center;
}

.page-contact__methods-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-contact__methods-title {
  font-size: 32px;
  color: #000080;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__methods-description {
  font-size: 17px;
  color: #666666;
  margin-bottom: 40px;
}

.page-contact__method-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-contact__method-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-contact__method-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__method-icon {
  width: 100px; /* Min size 200x200px, but icon can be smaller on page */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-contact__method-name {
  font-size: 22px;
  color: #000080;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__method-text {
  font-size: 16px;
  color: #777777;
  margin-bottom: 20px;
  flex-grow: 1; /* Make sure text takes available space */
}

.page-contact__method-link {
  display: inline-block;
  background-color: #FFD700; /* Primary color for buttons */
  color: #000080; /* Dark blue text for contrast */
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid #FFD700;
}

.page-contact__method-link:hover {
  background-color: #e6c200; /* Slightly darker yellow on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Contact Form Section */
.page-contact__form-section {
  background-color: #f0f8ff; /* Light blue background */
  padding: 60px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-contact__form-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.page-contact__form-title {
  font-size: 32px;
  color: #000080;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__form-description {
  font-size: 17px;
  color: #666666;
  margin-bottom: 40px;
}

.page-contact__contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.page-contact__form-group {
  margin-bottom: 15px;
}

.page-contact__form-label {
  display: block;
  font-size: 16px;
  color: #333333;
  margin-bottom: 8px;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 16px;
  color: #333333;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #999999;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
  outline: none;
}

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

.page-contact__form-submit-btn {
  background-color: #FFD700;
  color: #000080;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  align-self: center; /* Center the button */
  width: auto; /* Allow button to size based on content */
  min-width: 200px;
}

.page-contact__form-submit-btn:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 20px;
  background-color: #fefefe;
  margin-top: 40px;
  margin-bottom: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-contact__faq-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.page-contact__faq-title {
  font-size: 32px;
  color: #000080;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__faq-description {
  font-size: 17px;
  color: #666666;
  margin-bottom: 40px;
}

.page-contact__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-contact__faq-item {
  margin-bottom: 0; /* Override default margin */
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* Ensure it expands fully */
  padding: 20px 15px !important; /* Ensure padding is applied */
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-contact__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-contact__faq-question:active {
  background: #eeeeee;
}

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Allow click on parent div */
  color: #333333; /* Ensure contrast */
}

.page-contact__faq-answer p {
  color: #555555;
}

.page-contact__faq-answer a {
  color: #000080; /* Brand secondary color for links */
  text-decoration: underline;
}

.page-contact__faq-answer a:hover {
  color: #FFD700; /* Primary color on hover */
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Allow click on parent div */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: #333;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Responsible Gaming Section */
.page-contact__responsible-gaming-section {
  background-color: #000080; /* Deep blue background */
  color: #ffffff; /* White text for contrast */
  text-align: center;
  padding: 80px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-top: 40px;
}

.page-contact__responsible-gaming-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__responsible-gaming-title {
  font-size: 32px;
  color: #FFD700; /* Golden yellow for title */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__responsible-gaming-description {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.8;
}

.page-contact__responsible-gaming-btn {
  display: inline-block;
  background-color: #FFD700; /* Golden yellow button */
  color: #000080; /* Deep blue text for contrast */
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.page-contact__responsible-gaming-btn:hover {
  background-color: #e6c200; /* Slightly darker yellow on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-contact-title {
    font-size: 32px;
  }
  .page-contact__hero-contact-description {
    font-size: 16px;
  }
  .page-contact__methods-title,
  .page-contact__form-title,
  .page-contact__faq-title,
  .page-contact__responsible-gaming-title {
    font-size: 28px;
  }
  .page-contact__methods-description,
  .page-contact__form-description,
  .page-contact__faq-description,
  .page-contact__responsible-gaming-description {
    font-size: 15px;
  }
  .page-contact__method-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-contact__hero-contact-section {
    padding-top: 160px !important; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__hero-contact-title {
    font-size: 28px;
  }
  .page-contact__hero-contact-description {
    font-size: 15px;
  }
  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
.page-contact__responsible-gaming-section {
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .page-contact__methods-title,
  .page-contact__form-title,
  .page-contact__faq-title,
  .page-contact__responsible-gaming-title {
    font-size: 24px;
  }
  .page-contact__method-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__method-card {
    padding: 25px;
  }
  .page-contact__method-icon {
    width: 80px;
  }
  .page-contact__method-name {
    font-size: 20px;
  }
  .page-contact__method-text {
    font-size: 15px;
  }
  .page-contact__method-link {
    padding: 10px 20px;
    font-size: 15px;
  }
  .page-contact__form-label {
    font-size: 15px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 15px;
  }
  .page-contact__form-submit-btn {
    padding: 12px 25px;
    font-size: 16px;
    min-width: unset;
    width: 100%;
  }

  /* FAQ responsive */
  .page-contact__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-contact__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-contact__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-contact__faq-answer {
    padding: 0 15px;
  }
  
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px !important;
  }

  /* General image responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__hero-contact-section,
  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__responsible-gaming-section,
  .page-contact__methods-container,
  .page-contact__form-container,
  .page-contact__faq-container,
  .page-contact__responsible-gaming-container,
  .page-contact__method-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-contact-title {
    font-size: 24px;
  }
  .page-contact__methods-title,
  .page-contact__form-title,
  .page-contact__faq-title,
  .page-contact__responsible-gaming-title {
    font-size: 22px;
  }
  .page-contact__form-submit-btn {
    min-width: unset;
    width: 100%;
  }
}