/* style/contact.css */

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  text-align: center;
  overflow: hidden; /* For responsive image */
  background-color: #000000; /* Dark background for hero text area */
  color: #FFFFFF; /* Light text for dark background */
  padding-bottom: 60px; /* Add some padding at the bottom */
}

.page-contact__hero-container {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-contact__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-contact__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-contact__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
}

.page-contact__hero-button--live-chat {
  background-color: #FCBC45; /* Login color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-contact__hero-button--live-chat:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

.page-contact__hero-button--register {
  background-color: #FFFFFF; /* Register color */
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-contact__hero-button--register:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Make it subtle */
}

/* Contact Methods Section */
.page-contact__methods-section {
  padding: 80px 20px;
  background-color: #FFFFFF;
  text-align: center;
}

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

.page-contact__methods-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #000000;
}

.page-contact__methods-intro {
  font-size: 1.1em;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

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

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

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

.page-contact__method-heading {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #000000;
}

.page-contact__method-description {
  font-size: 1em;
  margin-bottom: 25px;
  color: #666666;
  flex-grow: 1; /* Ensures consistent card height */
}

.page-contact__method-email {
  font-weight: bold;
  color: #FCBC45;
  margin-bottom: 25px;
  font-size: 1.1em;
}

.page-contact__method-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: #000000; /* Main color */
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-contact__method-button:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-contact__method-button--email {
  background-color: transparent;
  color: #000000;
  border: 2px solid #000000;
}

.page-contact__method-button--email:hover {
  background-color: #000000;
  color: #FFFFFF;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 20px;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.page-contact__form-container {
  background-color: #FFFFFF;
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.page-contact__form-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #000000;
  text-align: center;
}

.page-contact__form-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #555555;
  text-align: center;
}

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

.page-contact__form-group {
  display: flex;
  flex-direction: column;
}

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

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FCBC45;
  box-shadow: 0 0 0 3px rgba(252, 188, 69, 0.2);
  outline: none;
}

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

.page-contact__form-submit-button {
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: center;
  width: auto;
}

.page-contact__form-submit-button:hover {
  background-color: #e0a53b;
}

.page-contact__form-image {
  max-width: 500px; /* Adjusted max-width for content image */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it behaves as a block element */
  object-fit: cover;
  min-width: 200px; /* Min size for content images */
  min-height: 200px; /* Min size for content images */
}

/* Call to Action Section */
.page-contact__cta-section {
  padding: 80px 20px;
  background-color: #000000; /* Dark background */
  color: #FFFFFF; /* Light text */
  text-align: center;
}

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

.page-contact__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-contact__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 200px;
  text-align: center;
}

.page-contact__cta-button--register {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-contact__cta-button--register:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

.page-contact__cta-button--login {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-contact__cta-button--login:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

/* Responsible Gaming Section */
.page-contact__responsible-gaming-section {
  padding: 60px 20px;
  background-color: #FFFFFF;
  text-align: center;
  border-top: 1px solid #eee;
}

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

.page-contact__responsible-gaming-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #000000;
}

.page-contact__responsible-gaming-description {
  font-size: 1em;
  margin-bottom: 30px;
  color: #666666;
}

.page-contact__responsible-gaming-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-contact__responsible-gaming-button:hover {
  background-color: #333333;
  border-color: #333333;
}


/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 3em;
  }

  .page-contact__methods-title,
  .page-contact__form-title,
  .page-contact__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset if needed */
    padding-bottom: 40px;
  }

  .page-contact__hero-title {
    font-size: 2.5em;
  }

  .page-contact__hero-description {
    font-size: 1em;
  }

  .page-contact__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__hero-button {
    width: 100%;
    max-width: 300px; /* Constrain width on mobile */
  }

  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__cta-section,
  .page-contact__responsible-gaming-section {
    padding: 50px 15px;
  }

  .page-contact__methods-title,
  .page-contact__form-title,
  .page-contact__cta-title {
    font-size: 2em;
  }

  .page-contact__methods-intro,
  .page-contact__form-description,
  .page-contact__cta-description {
    font-size: 0.95em;
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr;
  }

  .page-contact__form-section {
    flex-direction: column;
    gap: 30px;
  }

  .page-contact__form-container {
    padding: 30px;
  }

  .page-contact__form-image {
    max-width: 100%; /* Ensure images don't overflow on mobile */
    height: auto;
    min-width: 200px; /* Min size for content images */
    min-height: 200px; /* Min size for content images */
  }

  .page-contact__cta-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__cta-button {
    width: 100%;
    max-width: 300px; /* Constrain width on mobile */
  }

  /* Crucial: Mobile content image overflow prevention */
  .page-contact__form-section img,
  .page-contact__hero-section img {
    max-width: 100%;
    height: auto;
    object-fit: cover; /* Maintain aspect ratio */
  }
  
  /* Ensure all content images within .page-contact adhere to min-width/height and max-width: 100% on mobile */
  .page-contact img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure no image becomes too small */
    min-height: 200px; /* Ensure no image becomes too small */
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 2em;
  }

  .page-contact__methods-title,
  .page-contact__form-title,
  .page-contact__cta-title {
    font-size: 1.8em;
  }
}