/* FONT IMPORT (Included here for completeness, but also in the HTML head) */
@import url(https://db.onlinewebfonts.com/c/465b1cbe35b5ca0de556720c955abece?family=Abolition+W00+Regular);

/* Define CSS variables for the footer's theme and the new modal theme */
:root {
  /* FOOTER THEME VARIABLES (Your original variables) */
  --footer-bg: #141525;
  --footer-text: #a0a0a0;
  --footer-heading: #ffffff;
  --footer-accent: #b22222; /* Footer Accent Red */

  /* GLASS MORPHISM MODAL THEME VARIABLES (From your navbar CSS) */
  --card-bg: rgba(18, 18, 22, 0.85); /* Dark, semi-transparent background */
  --accent-red: #e53935; /* Primary Modal Accent Color */
  --text-primary: #e4e4e7; /* Light text */
  --text-secondary: #a1a1aa; /* Muted light text */
  --text-muted: #71717a; /* Secondary muted text for icons */
  --border-color: rgba(255, 255, 255, 0.1); /* Light border */
}


.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  font-family: "Inter", sans-serif;
  padding: 60px 20px;
  border-top: 1px solid #374151;
}

.footer-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.footer-col {
  padding: 0 15px;
}

.center-col {
  text-align: center;
}

.col-heading {
  font-family: "Abolition W00 Regular", "Abolition", sans-serif;
  font-size: 2rem;
  color: var(--footer-heading);
  margin-bottom: 20px;
  letter-spacing: 0.08rem;
  line-height: 1;
}

.footer-logo {
  font-family: "Abolition W00 Regular", "Abolition", sans-serif;
  font-size: 3rem;
  color: var(--footer-heading);
  margin-bottom: 30px;
  letter-spacing: 0.1rem;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  font-family: Arial, sans-serif !important;
}

.contact-info li {
  font-size: 1rem;
  margin-bottom: 10px;
}

.contact-info li i {
  margin-right: 10px;
  color: var(--footer-accent);
}

.faq-col {
  text-align: right;
}

.support-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.support-links-list li {
  margin-bottom: 8px;
}

.support-links-list li a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.support-links-list li a:hover {
  color: var(--footer-accent);
}

/* This class is now used by "Send Ticket" and "Return Policy" */
.clickable-link {
  cursor: pointer;
  color: var(--footer-text);
  transition: color 0.3s;
}

.clickable-link:hover {
  color: var(--footer-accent);
}

.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
  gap: 15px;
}

.center-col .social-links {
  justify-content: center;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--footer-text);
  border-radius: 50%;
  color: var(--footer-text);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--footer-accent);
  border-color: var(--footer-accent);
  color: var(--footer-heading);
  transform: translateY(-3px);
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-nav ul li a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.05rem;
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
  color: var(--footer-accent);
}

.footer-copyright {
  font-size: 0.9rem;
  margin-top: 15px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  overflow-y: auto; /* Added for scrollable modal */
  padding: 20px 0; /* Add padding for scroll */
}

.modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

.support-modal-glass {
  background-color: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  width: 90%;
  /* Set max-width to 500px for consistency across all modals */
  max-width: 500px; 
  padding: 30px;
  transform: scale(0.95) translateY(-20px);
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
  margin: auto; /* Ensures it's centered when scrolling */
}

/* Removed the specific max-width rule for policy modal to match the send ticket modal.
#policyModal .support-modal-glass {
    max-width: 600px;
}
*/

.modal-overlay.active .support-modal-glass {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding: 0 0 15px 0;
  margin-bottom: 25px;
}

.modal-header h4 {
  font-family: "Abolition W00 Regular", "Abolition", sans-serif;
  color: var(--footer-heading);
  font-size: 2.25rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.2s, transform 0.2s;
  line-height: 1;
  position: absolute;
  top: 25px;
  right: 25px;
}

.close-btn:hover {
  color: var(--accent-red);
  transform: rotate(90deg);
}

.modal-footer {
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color);
  padding: 15px 0;
  margin: 25px -30px -30px -30px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.action-btn {
  width: 100%;
  background-color: var(--accent-red);
  color: #fff;
  border: none;
  font-weight: 600;
  font-family: "Abolition W00 Regular", "Abolition", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.1rem;
  padding: 0.7rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  min-height: 54px;
  cursor: pointer;
  text-transform: uppercase;
}

.action-btn:hover:not(:disabled) {
  background-color: #f44336;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.input-group {
  position: relative;
  margin-bottom: 1.75rem;
}

.input-field {
  font-size: 1rem;
  height: 52px;
  padding: 0.75rem 2.75rem 0.75rem 2.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background-color 0.3s ease,
  box-shadow 0.3s ease;
  text-transform: none; 
  font-family: Arial, sans-serif; 
}

.input-group.textarea-group .input-field {
  height: auto;
  min-height: 120px;
  padding-top: 30px;
}

.input-field:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.3);
  background-color: transparent;
  border-color: var(--accent-red);
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: color 0.3s ease;
  font-size: 1.25rem;
  z-index: 2;
}

.textarea-group .input-icon {
  top: 15px;
  transform: translateY(0);
}

.input-label {
  position: absolute;
  left: 2.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  transition: all 0.3s ease;
  background-color: transparent;
  padding: 0 4px;
  z-index: 1;
  font-family: Arial Sans-Serif;
}

.textarea-group .input-label {
  top: 15px;
  transform: translateY(0);
  left: 2.75rem;
}

.input-field:focus ~ .input-label,
.input-field:not(:placeholder-shown) ~ .input-label {
  top: 0;
  font-size: 0.8rem;
  color: var(--accent-red);
  background-color: var(--card-bg);
  z-index: 3;
}

.input-field:focus ~ .input-icon {
  color: var(--accent-red);
}

/* Styles for Policy Modal Content (updated for scrolling and custom style) */
.policy-content {
    padding: 0 5px; /* Add some horizontal padding */
    color: var(--text-secondary);
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    
    /* --- SCROLLING STYLES --- */
    max-height: 400px; /* Controls the height of the scrollable area */
    overflow-y: auto; /* Enable vertical scrolling */
    padding-right: 15px; /* Add space for the scrollbar */

    /* --- FIREFOX SCROLLBAR STYLES --- */
    scrollbar-color: var(--accent-red) var(--card-bg); /* thumb color | track color */
    scrollbar-width: thin; /* Sets the scrollbar to be thin */
}

/* --- CHROME/SAFARI/EDGE SCROLLBAR RULES --- */
.policy-content::-webkit-scrollbar-track {
    background-color: var(--card-bg);
    border-radius: 10px;
}

.policy-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.policy-content::-webkit-scrollbar-thumb {
    background-color: var(--accent-red);
    border-radius: 10px;
    border: 2px solid var(--card-bg); 
}

.policy-content::-webkit-scrollbar-thumb:hover {
    background-color: #f44336;
}

#policyModal {
    z-index: 1151;
}

@media (max-width: 768px) {
  .footer-content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .footer-col {
    text-align: center;
  }
  .contact-info {
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
  .footer-logo {
    margin-bottom: 20px;
  }

  /* Adjust modal for small screens */
  .support-modal-glass {
    margin: 20px auto; /* Use auto margin for centering */
  }
  /* Ensure scrolling is available on mobile with less max-height if needed */
  .policy-content {
    max-height: 70vh; /* Use viewport height for better responsiveness on small screens */
  }
}