:root {
  --primary-color: #f41112; /* Brand Red */
  --secondary-color: #ff5527; /* Brand Orange */
  --accent-color: #ff9900; /* Brand Yellow */
  --dark-gray: #545454; /* Dark Gray */
  --light-gray: #f9f9f9; /* Light Gray White */
  --font-family: 'Open Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  background-color: var(--light-gray);
  color: var(--dark-gray);
}

header {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}


.logo {
  display: flex; /* Use flexbox for the logo container */
  align-items: center; /* Vertically center the logo */
  justify-content: center; /* Center the logo horizontally within its container */
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}

.logo-img {
  height: 60px; /* Adjust the logo size */
}




/* Hero banner for all pages */
.hero {
  height: 30vh; /* Consistent height for all hero banners */
  background: white; /* Brand Red as fallback */
  background-image: url('./images/hero-default.svg'); /* Default hero image */
  background-size: auto 100%; /* Scale vertically */
  background-position: center; /* Center the image horizontally */
  background-repeat: no-repeat; /* Prevent tiling */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07); /* Subtle drop shadow */
}



.grid-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.info-grids {
  padding: 2.5rem 1.5rem 1.5rem 1.5rem; /* Top, right, bottom, left */
}

@media (min-width: 768px) {
  .info-grids {
    padding: 3rem 4rem 2rem 4rem;
  }
}

.grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.grid-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 2rem 1.5rem;
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 350px;
  text-align: left;
}

.grid-item h2 {
  text-align: center;
  padding-bottom: 0.75rem; /* Added padding below h2 headings */
}

/* Buttons: Gradient from red to orange with rounded corners */
.grid-item .btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-block;
  padding: .6rem 1.0rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 18px; /* Rounded corners */
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s; /* Smooth transition for hover effects */
}

.grid-item .btn:hover {
  transform: scale(1.05); /* Slightly enlarge the button */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a drop shadow */
}

.info-grids .grid-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}

.info-grids .grid-item.visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  background: var(--light-gray);
  color: black;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

footer a {
  color: #888;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--primary-color);
}

.content-section {
  padding: 2rem 1rem; /* Add padding to the section */
}

.content-container {
  max-width: 800px; /* Optional: Limit the width of the text for better readability */
  margin: 0 auto; /* Center the content */
  padding: 1rem; /* Add padding inside the container */
  line-height: 1.6; /* Improve text readability */
}

/* Add responsive container logic to prevent text overflow */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  word-wrap: break-word;
}


.partner-form {
  display: flex;
  flex-direction: row; /* Two-column layout */
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
  background: linear-gradient(to bottom, #ffffff, #f9f9f9); /* Subtle gradient background */
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.form-left, .form-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Increased spacing for better readability */
}

label {
  font-weight: 700; /* Bolder font for labels */
  color: var(--dark-gray);
  font-size: 1.1rem; /* Slightly larger font size */
}

input, select, textarea {
  width: 100%;
  padding: 1rem; /* Increased padding for a modern look */
  border: 1px solid var(--dark-gray);
  border-radius: 8px; /* Rounded corners */
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
}

input:focus, select:focus, textarea:focus {
  border-color: blue; /* Blue highlight for focused inputs */
  box-shadow: 0 0 8px rgba(0, 0, 255, 0.3); /* Blue glow effect */
  outline: none;
}

input.invalid, select.invalid, textarea.invalid {
  border-color: red; /* Red border for invalid inputs */
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.3); /* Red glow effect */
}

textarea {
  resize: none;
  min-height: 200px; /* Ensure a good height for the message box */
}

button.btn {
  align-self: flex-start;
  padding: 0.5rem 1.5rem; /* Larger button for better usability */
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: 24px; /* More rounded corners */
  font-weight: 700;
  font-size: 1.1rem; /* Slightly larger font size */
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, all 0.3s ease; /* Smooth transition for text change */
}

button.btn:hover {
  transform: scale(1.1); /* Slightly larger hover effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* More pronounced shadow on hover */
}

button.btn:disabled {
  background: gray !important; /* Override gradient background */
  background-color: gray; /* Flat gray background */
  cursor: not-allowed; /* Show not-allowed cursor */
  box-shadow: none; /* Remove shadow */
  transform: none; /* Disable hover animation */
}

button.btn:disabled:hover {
  transform: none; /* Ensure no hover effect */
  box-shadow: none; /* Ensure no shadow on hover */
}

/* Styles for the disabled submit button */
button:disabled {
  background-color: #d3d3d3 !important; /* Override any conflicting styles */
  color: #ffffff; /* White text */
  border: none; /* No border */
  cursor: not-allowed; /* Indicate disabled state */
  box-shadow: none; /* Remove any shadow */
  transition: none; /* Disable animations */
}

button:disabled:hover {
  background-color: #d3d3d3; /* Ensure no hover effect */
}

.dynamic-section {
  padding: 4rem 2rem;
  background-color: var(--light-gray);
}

.dynamic-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

.dynamic-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.dynamic-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.dynamic-item h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1rem;
}

.dynamic-item p {
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
}

/* Ensure .dynamic-image scales like .gallery-item img */
.dynamic-image {
  max-width: 120px;
  max-height: 120px;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background: #f0f0f0;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  .dynamic-image {
    max-width: 90px;
    max-height: 90px;
  }
}

.thank-you-message {
  text-align: center;
  padding: 2rem;
  background-color: var(--light-gray);
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  animation: fadeIn 0.5s ease-in-out;
}

.thank-you-message h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.thank-you-message p {
  color: var(--dark-gray);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.thank-you-animation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.checkmark {
  width: 52px;
  height: 52px;
  stroke-width: 2;
  stroke: var(--primary-color);
  fill: none;
  stroke-linecap: round;
  animation: drawCheck 0.5s ease-in-out forwards;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: drawCircle 0.6s ease-in-out forwards;
}

.checkmark-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: drawCheck 0.3s 0.6s ease-in-out forwards;
}

@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.faq-wrapper {
  margin-top: 2rem;
  max-width: 1200px; /* Match the width of the submission form */
  margin-left: auto;
  margin-right: auto;
}

.faq-toggle {
  background: white;
  color: var(--primary-color);
  border: none;
  border-radius: 12px;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-toggle::after {
  content: '\25BC'; /* Downward arrow */
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.faq-toggle.open::after {
  transform: rotate(180deg); /* Rotate arrow when open */
}

.faq {
  display: none;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.faq p {
  margin: 0.5rem 0; /* Reduce spacing between Q&A items */
}

.faq p + p {
  margin-top: 0; /* Ensure Q&A pairs are visually grouped */
}

/* Gallery Section Styles */
.gallery-section {
  background: #f8fafc;
  padding: 3rem 0 2rem 0;
}
.gallery-section h2 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 600;
}
.gallery-section p {
  text-align: center;
  margin-bottom: 2rem;
  color: #555;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.gallery-item {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 1.5rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
}
.gallery-item:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.gallery-item img {
  max-width: 120px;
  max-height: 120px;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background: #f0f0f0;
}
.gallery-item span {
  font-size: 1rem;
  color: #333;
  margin-top: 0.5rem;
  text-align: center;
}

/* Enlarge overlay styles for gallery */
.gallery-enlarge-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
}
.gallery-enlarge-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 1rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .gallery-item img {
    max-width: 90px;
    max-height: 90px;
  }
}

@media (max-width: 768px) {
  .partner-form {
    flex-direction: column; /* Stack the form vertically */
  }

  .form-left, .form-right {
    width: 100%; /* Make both sections take full width */
  }

  textarea {
    min-height: 150px; /* Ensure the message box is usable on smaller screens */
  }

  button.btn {
    align-self: center; /* Center the button on smaller screens */
  }
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: #222;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: #0077ff;
  outline: none;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff url('data:image/svg+xml;utf8,<svg fill="%23333" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 1rem center/1em auto;
  cursor: pointer;
}

.policy-indent {
  margin-left: 2rem;
}
@media (max-width: 600px) {
  .policy-indent {
    margin-left: 1rem;
  }
}

/* New styles for the partner policy page back button */
.policy-back-btn-wrapper {
  max-width: 1200px;
  margin: 1.5rem auto 0 auto;
  padding: 0 1rem;
}
.policy-back-btn {
  text-decoration: none;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 0.5rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.16); /* Stronger drop shadow for both back and learn more buttons */
  transition: transform 0.3s, box-shadow 0.3s, all 0.3s ease;
  align-self: flex-start;
}
.policy-back-btn:hover {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.policy-back-btn:disabled,
.policy-back-btn:disabled:hover {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transform: none;
  opacity: 1;
}

.policy-back-btn.learn-more-btn {
  padding: 0.35rem 1rem;
  font-size: 1rem;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.16); /* Stronger drop shadow for both back and learn more buttons */
  margin-top: 1rem;
}

/* Brand Preview Section */
.brand-preview-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  max-width: 900px;
  margin: 2.5rem auto 1.5rem auto;
  padding: 2.5rem 2rem 2rem 2rem;
}
.brand-preview-container h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--primary-color);
}
.brand-identity-preview {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.brand-preview-logo {
  max-width: 120px;
  border-radius: 0.5rem;
  background: #f0f0f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.brand-identity-text {
  flex: 1;
  color: #545454;
  font-size: 1.08rem;
}
.brand-identity-text ul {
  margin: 0.7rem 0 0 1.2rem;
  padding: 0;
}
.brand-identity-text li {
  margin-bottom: 0.3rem;
}

/* UI Preview Section */
.ui-preview-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  max-width: 900px;
  margin: 2.5rem auto 2.5rem auto;
  padding: 2.5rem 2rem 2rem 2rem;
}
.ui-preview-container h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--primary-color);
}
.ui-preview-mockup {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.ui-preview-img {
  max-width: 220px;
  border-radius: 0.7rem;
  background: #f0f0f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ui-preview-description {
  flex: 1;
  color: #545454;
  font-size: 1.08rem;
}

@media (max-width: 700px) {
  .brand-identity-preview, .ui-preview-mockup {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .brand-preview-section, .ui-preview-section {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
  .ui-preview-img {
    max-width: 100%;
  }
}
