/* ---------------------------------------------------------------------- */



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

body {
  font-family: 'Merriweather', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ececec;
  background: linear-gradient(180deg, #500000, #DC143C);
  /* background-image: url(.//images/banner.png); */
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
}

/* Header Section */
.header {
  /* background: linear-gradient(135deg, #8B0000, #DC143C); */
  background-image: url(/images/banner.png);
  color: white;
  padding: 30px 30px 20px 30px;
  display: flex;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 50vh;
}

/* .header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
} */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
  height: 100%;
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 32px;
}

.header-top {
  width: 800px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0px 0px 32px;
  margin-bottom: 12px;
}

.header-top img {
  height: 60px;
  width: auto;
}

.header-bottom {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: end;
  justify-content: center;
  gap: 32px;
}

.mneumonic img {
  max-width: 400px;
  width: 100%;
  height: auto;
}

.announcement {
  display: flex;
  align-items: end;
  height: 100%;
  font-family: "SutonnaMJ";
}

.texts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 4px;
  padding-bottom: 32px;
}

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sun-foundation {
  color: #32CD32;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 5px;
}

.sun-foundation::before {
  content: '☀️';
  margin-right: 8px;
}

.initiative {
  font-size: 14px;
  margin-bottom: 15px;
}

.emblem {
  width: 120px;
  height: 120px;
  background: linear-gradient(45deg, #FFD700, #FFA500);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
  position: relative;
}

.emblem::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 15px;
  background: linear-gradient(45deg, #FFD700, #FFA500);
  border-radius: 50%;
  filter: blur(5px);
}

.emblem-title {
  font-size: 16px;
  font-weight: bold;
  color: #8B0000;
  margin-bottom: 5px;
}

.emblem-subtitle {
  font-size: 12px;
  color: #8B0000;
}

.header-text {
  text-align: right;
  max-width: 500px;
}

.main-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.deadline {
  font-size: 18px;
  opacity: 0.9;
}

/* Form Section */
.form-container {
  max-width: 800px;
  margin: 40px auto;
  background: white;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.07) 0px 7px 65px 0px;
  border: 0.4px solid #d2d2d2;
  overflow: hidden;
}

.form-section {
  padding: 30px;
}

.section-title {
  text-align: left;
  font-size: 24px;
  font-weight: bold;
  /* margin-bottom: 30px; */
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  /* background: #cfcfcfc7; */
  /* border-radius: 4px; */
}

.section-subtitle {
  text-align: left;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.personal-info {
  padding: 10px 0;
  font-size: 16px;
  font-weight: bold;
  /* color: #DC143C; */
  border-image: linear-gradient(to right, orange, red) 1;
  border-bottom: 2px solid #9a9a9a;
  margin-bottom: 20px;
}

.cont-info {
  padding: 10px 0;
  font-size: 16px;
  font-weight: bold;
  /* color: #DC143C; */
  border-image: linear-gradient(to right, orange, red) 1;
  border-bottom: 2px solid #9a9a9a;
  margin-bottom: 20px;
  margin-top: 20px;
}

.language-toggle {
  display: flex;
  gap: 5px;
}

.lang-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease-in-out;
}

.lang-btn.active {
  background: #DC143C;
  color: white;
  border-color: #DC143C;
}

.lang-btn:hover {
  background: white;
  color: #b40024;
  border-color: #DC143C;
}

.lang-btn.active:hover {
  background: #DC143C;
  color: white;
  border-color: #DC143C;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-row.full-width {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-label {
  font-weight: bold;
  color: #333;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 0.5px solid #aaaaaa;
  /* border: none; */
  border-radius: 8px;
  font-size: 14px;
  background: #ffffff;
  transition: all 0.3s ease;
  font-family: 'Merriweather', sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: #efa1a1;
  box-shadow: 0 0 5px rgba(220, 20, 60, 0.3);
}

/* Select dropdown styling */
.form-input option {
  color: #333;
  background: white;
}

.form-input option[disabled] {
  color: #757575;
}

.form-input.placeholder-style {
  color: #757575;
}

.form-input.selected-style {
  color: #333;
}

/* Upload Section */
.upload-section {
  padding: 30px;
  background: #f9f9f9;
}

.upload-section .section-title::after {
  /* background: #32CD32; */
}

.upload-file {
  font-size: 20px;
  margin-bottom: 20px;
}

.upload-area {
  border: 3px dashed #ccc;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area:hover {
  border-color: #DC143C;
  background: #fff5f5;
}

.upload-icon {
  /* font-size: 48px; */
  color: #666;
  margin-bottom: 4px;
}

.upload-text {
  font-size: 18px;
  color: #333;
  margin-bottom: 4px;
}

.upload-subtext {
  color: #666;
  margin-bottom: 8px;
}

.select-files-btn {
  background: white;
  color: #DC143C;
  border: 2px solid #DC143C;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.select-files-btn:hover {
  background: #DC143C;
  color: white;
}

.submit-btn {
  background: #DC143C;
  color: white;
  border: 2px solid #DC143C;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: white;
  color: #DC143C;
}

.submit-btn-container {
  text-align: center;
  margin-top: 30px;
  padding: 0 30px 30px 30px;
  /* margin-bottom: 20px; */
}

.submit-btn {
  width: 100%;
  max-width: 200px;
  /* font-size: 16px; */
  font-weight: bold;
}

/* Terms Section */
.terms-section {
  padding: 30px;
  background: #f2ebe9;
}

.terms-content {
  background: white;
  padding: 25px;
  border-radius: 8px;
  line-height: 1.8;
}

.terms-content h3 {
  color: #DC143C;
  margin-bottom: 15px;
  font-size: 20px;
}

.terms-content p {
  margin-bottom: 15px;
  text-align: justify;
}

.contact-info {
  background: #f0f0f0;
  padding: 24px 28px;
  border-radius: 6px;
  margin-top: 32px;
}

/* Footer */
.footer {
  background: #f7ede9;
  padding: 30px 20px;
  text-align: center;
}

.sponsors {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.sponsor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sponsor-label {
  font-size: 12px;
  color: #000000;
  margin-bottom: 12px;
}

.sponsor-logo {
  /* width: 120px; */
  height: 50px;
  /* background: #f0f0f0; */
  /* border-radius: 8px; */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #333;
  /* border: 1px solid #ddd; */
}

.sponsor-logo.square {
  color: #0066CC;
}

.sponsor-logo.maasranga {
  color: #333;
}

.sponsor-logo.mediacom {
  color: #DC143C;
}

.sponsor-logo.bishworong {
  background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4);
  color: white;
}

@media (max-width:900px) {
  .sponsor-label {
    font-size: 12px;
    color: #000000;
  }

  .header {
    height: auto;
  }

  .header-content {
    flex-direction: column;
  }

  .header-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .header-bottom {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .header-top {
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
    padding: 0;
    width: 100%;
  }

  .header-top img {
    margin-bottom: 8px;
  }

  .language-toggle {
    margin-bottom: 20px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .submit-btn {
    width: 100%;
    max-width: 300px;
  }

  .header-image {
    left: 0px;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .header-text {
    text-align: center;
  }

  .main-title {
    font-size: 22px;
  }

  .form-grid {
    gap: 15px;
  }

  .language-toggle {
    position: static;
    justify-content: center;
  }

  .sponsors {
    flex-direction: column;
    gap: 30px;
  }

  .sponsor-logo {
    height: auto;
  }
}

.terms-btn {
  margin-left: 10px;
  padding: 8px 18px;
  background: #fff;
  color: #DC143C;
  border: 1.5px solid #DC143C;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.terms-btn:hover {
  background: #DC143C;
  color: #fff;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px 24px 24px 24px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2rem;
  color: #DC143C;
  cursor: pointer;
  font-weight: bold;
  z-index: 10001;
}

.required-star {
  color: red;
  margin-left: 2px;
}

.help-block {
  color: #DC143C;
  /* Bootstrap's red color for danger */
  font-size: 0.875rem;
  /* slightly smaller than base */
  margin-top: 4px;
  display: block;
}

/* Container for success message */
.alert-success {
  background-color: #d1e7dd;
  /* Light green background */
  border: 1px solid #badbcc;
  /* Light border */
  color: #0f5132;
  /* Dark green text */
  padding: 2rem;
  /* Larger padding for better spacing */
  border-radius: 0.375rem;
  /* Rounded corners */
  text-align: center;
  /* Center align text */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* Subtle shadow for depth */
}

/* Heading for success message */
.alert-success h2 {
  font-size: 1.5rem;
  /* Slightly larger font size for emphasis */
  font-weight: 600;
  /* Bold font */
  margin-bottom: 1rem;
  /* Space between heading and content */
}

/* Optional: specific language classes for modal-bn and modal-en */
.registration.modal-bn {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #0f5132;
}

.registration.modal-en {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #0f5132;
}


.video-preview {
  margin-top: 10px;
  position: relative;
}

.video-thumbnail {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.remove-file-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: transparent;
  border: none;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  color: #DC143C;
  transition: color 0.3s ease;

}

.terms-link {
  text-decoration: underline;
  cursor: pointer;
  color: #DC143C;
}

.terms-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.banner {
  background-color: #DC143C;
  padding: 5px;
  color: white;
  text-align: center;
  margin-top: 20px;
  margin-left: 20px;
  margin-right: 20px;
  font-weight: bold;
  font-size: 20px;
  border-radius: 5px;

}

.banner-success {
  background-color: #DC143C;
  padding: 5px;
  color: white;
  text-align: center;
  padding: 10px;

  font-weight: bold;
  font-size: 25px;
  /* border-radius: 5px; */

}


.footer-img {
  max-width: 70%;
}


@media (max-width: 700px) {
  .footer-img {
    max-width: 100%;
  }
}