/* General styling for the contact page content area */
.content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px 50px; /* Added more top padding */
    width: 100%;
}

/* Container for the form, with transparency and blur effect */
.contact-container {
    width: 100%;
    max-width: 700px;
    background: rgba(18, 18, 18, 0.6); /* Semi-transparent background */
    backdrop-filter: blur(15px); /* Frosted glass effect */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: #fff;
}

.contact-container h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, rgb(255, 255, 255), rgb(176, 255, 8));
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.contact-container .subtitle {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 40px;
}

/* The form itself */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative; /* Needed for custom select positioning */
}

.form-group label {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #ddd;
    font-weight: 500;
}

/* Styling for all input, select, and textarea fields */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    font-size: 1rem;
    color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgb(176, 255, 8);
    box-shadow: 0 0 15px rgba(176, 255, 8, 0.3);
}

/* Custom styling for the file input */
.contact-form input[type="file"] {
    padding: 10px;
}

.contact-form input[type="file"]::file-selector-button {
    background: linear-gradient(45deg, rgb(255, 255, 255), rgb(176, 255, 8));
    color: black;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form input[type="file"]::file-selector-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(177, 255, 8, 0.4);
}

/* Legal and Privacy Policy Text */
.legal-text {
    font-size: 0.8rem;
    color: #aaa;
    text-align: center;
    margin-top: 10px;
}

.legal-text a {
    color: #fff;
    text-decoration: underline;
}

/* Checkbox container */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 5px;
}

.checkbox-container label {
    font-size: 0.9rem;
    color: #ccc;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: rgb(176, 255, 8);
}

/* Form error message */
.form-error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
    font-weight: 500;
}

/* Submit button styling, similar to your existing CTA */
.submit-button {
    padding: 16px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(45deg, rgb(255, 255, 255), rgb(176, 255, 8));
    color: black;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 10px;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(177, 255, 8, 0.501);
}

/* Active state for navigation link */
nav ul li a.active {
    color: rgb(176, 255, 8);
    font-weight: bold;
}

/* --- NEW CUSTOM SELECT STYLES --- */

/* Hide the original select */
.form-group select {
    display: none;
}

/* The container for our custom select */
.custom-select {
    position: relative;
    width: 100%;
}

/* The visible part of the dropdown */
.select-selected {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Arrow for the dropdown */
.select-selected::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #fff;
    transition: all 0.3s ease;
}

/* Arrow rotation when dropdown is active */
.select-selected.select-arrow-active::after {
    transform: translateY(-50%) rotate(180deg);
}

/* The options container */
.select-items {
    position: absolute;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    border-radius: 10px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
}

/* Hide the options by default */
.select-hide {
    display: none;
}

/* Individual option styling */
.select-items div {
    color: #ddd;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

/* Hover effect for options */
.select-items div:hover, .same-as-selected {
    background-color: rgba(176, 255, 8, 0.2);
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-container {
        padding: 25px;
    }
    .contact-container h1 {
        font-size: 2rem;
    }
}





/* Initially hide the 'Other' input fields */
.hidden-field {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    /* Add a transition for a smooth reveal */
    transition: all 0.5s ease-in-out;
}

/* Style for when the fields are shown */
.hidden-field.visible {
    display: flex; /* Matches the .form-group style */
    opacity: 1;
    max-height: 120px; /* Ensure enough height for the element */
}









/* --- POPUP STYLES --- */

.popup-container {
  /* Positioning */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;

  /* Appearance */
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  
  /* Centering Content */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;

  /* Animation & Visibility */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Class added by JS to show the popup */
.popup-container.visible {
  opacity: 1;
  visibility: visible;
}

/* The popup will directly contain the .thank-you-card from thank-you.html.
   We need to make sure it doesn't get affected by the popup's transition. */
.popup-container > * {
   transition: transform 0.4s ease;
}

.popup-container.visible > * {
  transform: scale(1);
}

.popup-container > * {
  transform: scale(0.95);
}












/* --- THANK YOU POPUP STYLES --- */
.thank-you-card {
  background: rgba(34, 34, 34, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(72, 72, 72, 0.5);
  border-radius: 20px;
  padding: 40px 50px;
  text-align: center;
  max-width: 550px;
  width: 100%;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  /* Animations are handled by the .popup-container now */
}

.submission-progress {
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  animation: hideProgress 0.5s ease-out 3.5s forwards;
}

.progress-text {
  font-size: 1.2rem;
  color: #bbb;
  margin-bottom: 15px;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.8s forwards;
}

.progress-bar-container {
  width: 80%;
  height: 8px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(72, 72, 72, 0.5);
  border-radius: 5px;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.8s forwards;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background-color: rgb(176, 255, 8);
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(176, 255, 8, 0.7);
  animation: fillBar 2s cubic-bezier(0.65, 0, 0.45, 1) 1.2s forwards;
}

.final-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.5s ease-out;
  animation: showFinalContent 0.5s ease-out 3.8s forwards;
}

.thank-you-card h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.thank-you-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #bbb;
  margin-bottom: 30px;
}

.thank-you-card .cta-button {
  display: inline-block;
  padding: 16px 40px;
  font-size: 1rem;
  background: linear-gradient(45deg, rgb(255, 255, 255), rgb(176, 255, 8));
  color: black;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 550;
  letter-spacing: 2.25px;
}

.thank-you-card .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(177, 255, 8, 0.501);
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes fillBar { to { width: 100%; } }
@keyframes hideProgress {
  to {
    opacity: 0;
    height: 0;
    margin-bottom: 0;
    overflow: hidden;
  }
}
@keyframes showFinalContent {
  to {
    max-height: 500px;
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .thank-you-card {
    padding: 30px 25px;
  }
  .progress-text {
    font-size: 1rem;
  }
  .thank-you-card h1 {
    font-size: 2rem;
  }
  .thank-you-card p {
    font-size: 1rem;
  }
  .thank-you-card .cta-button {
    padding: 14px 35px;
    font-size: 0.9rem;
  }
}