/* Contact Page Specific Styles */

/* Contact Hero Section */
.contact-hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #01357a 100%);
  color: var(--white);
  padding: 150px 0 100px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Hero Background Shapes */
.contact-hero-section .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.contact-hero-section .hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.contact-hero-section .hero-shape-1 {
  width: 300px;
  height: 300px;
  background: var(--secondary-color);
  top: -100px;
  right: 10%;
  animation: heroFloat 20s ease-in-out infinite;
}

.contact-hero-section .hero-shape-2 {
  width: 200px;
  height: 200px;
  background: var(--white);
  bottom: -50px;
  left: 5%;
  animation: heroFloat 15s ease-in-out infinite reverse;
}

.contact-hero-section .hero-shape-3 {
  width: 150px;
  height: 150px;
  background: var(--secondary-color);
  top: 40%;
  left: 10%;
  animation: heroFloat 18s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(30px, -30px) rotate(180deg);
  }
}

.contact-hero-section .container {
  position: relative;
  z-index: 2;
}

.contact-hero-section .page-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.contact-hero-section .page-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.contact-hero-section .breadcrumb {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 25px;
  border-radius: 50px;
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-hero-section .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-hero-section .breadcrumb-item a:hover {
  color: var(--secondary-color);
}

.contact-hero-section .breadcrumb-item.active {
  color: var(--white);
}

.contact-hero-section .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* Section Badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(235, 190, 0, 0.15);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(235, 190, 0, 0.3);
}

.section-badge i {
  color: var(--secondary-color);
}

/* Floating Background Elements */
.floating-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.floating-bg .float-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  will-change: transform;
}

.floating-bg .float-shape-1 {
  width: 150px;
  height: 150px;
  background: var(--primary-color);
  top: 15%;
  right: 10%;
  animation: contactFloat 20s ease-in-out infinite;
}

.floating-bg .float-shape-2 {
  width: 100px;
  height: 100px;
  background: var(--secondary-color);
  bottom: 20%;
  left: 8%;
  animation: contactFloat 18s ease-in-out infinite reverse;
  animation-delay: 1s;
}

@keyframes contactFloat {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -20px) rotate(90deg);
  }
  50% {
    transform: translate(-15px, 15px) rotate(180deg);
  }
  75% {
    transform: translate(15px, 20px) rotate(270deg);
  }
}

/* Contact Info Section */
.contact-info-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.contact-info-section .container {
  position: relative;
  z-index: 2;
}

/* Info Cards */
.info-card {
  text-align: center;
  padding: 35px 25px;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: var(--transition);
}

.info-card:hover::before {
  left: 100%;
  transition: left 0.6s ease;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(2, 44, 130, 0.2);
  background: rgba(255, 255, 255, 0.25);
}

.info-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.info-icon i {
  font-size: 1.8rem;
  color: var(--white);
}

.info-card:hover .info-icon {
  background: var(--secondary-color);
  transform: scale(1.1) rotateY(360deg);
}

.info-card:hover .info-icon i {
  color: var(--primary-color);
}

.info-card h5 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.info-card p {
  color: var(--dark-gray);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.info-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.info-link:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.info-link i {
  transition: var(--transition);
}

.info-link:hover i {
  transform: translateX(5px);
}

/* Contact Form Section */
.contact-form-section {
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.contact-form-section .container {
  position: relative;
  z-index: 2;
}

.contact-form-wrapper {
  padding: 50px 40px;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  box-shadow: 0 15px 50px rgba(2, 44, 130, 0.15);
}

.form-header h3 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 10px;
}

.form-header p {
  color: var(--dark-gray);
  font-size: 1.05rem;
}

/* Form Styling */
.form-label {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 15px;
  color: var(--primary-color);
  font-size: 1rem;
  z-index: 2;
  pointer-events: none;
}

.form-control {
  padding: 12px 15px 12px 45px;
  border: 2px solid rgba(2, 44, 130, 0.1);
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.8);
  width: 100%;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(2, 44, 130, 0.1);
  background: var(--white);
  outline: none;
}

.form-control::placeholder {
  color: #999;
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Captcha Styling */
.captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.captcha-box {
  background: linear-gradient(135deg, #e8f4fd 0%, #d1e9fb 100%);
  border: 3px solid var(--primary-color);
  border-radius: 15px;
  padding: 10px;
  display: inline-block;
  box-shadow: 0 5px 20px rgba(2, 44, 130, 0.15);
  position: relative;
  overflow: hidden;
}

.captcha-box::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color),
    var(--primary-color)
  );
  border-radius: 15px;
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.captcha-box:hover::before {
  opacity: 0.3;
}

#captchaCanvas {
  display: block;
  border-radius: 10px;
  background: transparent;
}

.btn-refresh-captcha {
  width: 55px;
  height: 55px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.3rem;
  box-shadow: 0 5px 15px rgba(2, 44, 130, 0.3);
}

.btn-refresh-captcha:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 8px 25px rgba(235, 190, 0, 0.4);
}

.btn-refresh-captcha:active {
  transform: rotate(360deg) scale(0.95);
}

.form-text {
  color: var(--dark-gray);
  font-size: 0.85rem;
  margin-top: 5px;
  display: block;
}

/* Form Check */
.form-check-input {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(2, 44, 130, 0.3);
  border-radius: 5px;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-label {
  color: var(--dark-gray);
  margin-left: 10px;
}

/* Form Message */
.form-message {
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-message.success {
  background: rgba(40, 167, 69, 0.1);
  border: 2px solid #28a745;
  color: #28a745;
  display: block;
}

.form-message.error {
  background: rgba(220, 53, 69, 0.1);
  border: 2px solid #dc3545;
  color: #dc3545;
  display: block;
}

/* Submit Button */
.contact-form-wrapper .btn-primary {
  padding: 15px 50px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper .btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: var(--transition);
}

.contact-form-wrapper .btn-primary:hover::before {
  left: 100%;
  transition: left 0.6s ease;
}

.contact-form-wrapper .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(2, 44, 130, 0.3);
}

/* FAQ Section */
.faq-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.faq-section .container {
  position: relative;
  z-index: 2;
}

/* FAQ Container */
.faq-container {
  display: grid;
  gap: 20px;
}

/* FAQ Item Styling */
.faq-item {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.faq-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--secondary-color);
  transform: scaleY(0);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: 0 15px 40px rgba(2, 44, 130, 0.2);
  transform: translateY(-5px);
  border-color: rgba(2, 44, 130, 0.3);
}

.faq-item:hover::before {
  transform: scaleY(1);
}

.faq-item.active {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--primary-color);
}

.faq-item.active::before {
  transform: scaleY(1);
  background: var(--primary-color);
}

/* FAQ Question */
.faq-question {
  display: flex;
  align-items: center;
  padding: 25px 30px;
  gap: 20px;
  position: relative;
}

.faq-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-icon i {
  font-size: 1.3rem;
  color: var(--white);
}

.faq-item:hover .faq-icon {
  background: var(--secondary-color);
  transform: scale(1.1) rotate(360deg);
}

.faq-item:hover .faq-icon i {
  color: var(--primary-color);
}

.faq-item.active .faq-icon {
  background: var(--secondary-color);
}

.faq-item.active .faq-icon i {
  color: var(--primary-color);
}

.faq-question h5 {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0;
  flex: 1;
  line-height: 1.4;
}

.faq-toggle {
  width: 40px;
  height: 40px;
  background: rgba(2, 44, 130, 0.1);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-toggle i {
  color: var(--primary-color);
  font-size: 1rem;
  transition: var(--transition);
}

.faq-item:hover .faq-toggle {
  background: var(--primary-color);
  transform: scale(1.1);
}

.faq-item:hover .faq-toggle i {
  color: var(--white);
}

.faq-item.active .faq-toggle {
  background: var(--primary-color);
  transform: rotate(45deg);
}

.faq-item.active .faq-toggle i {
  color: var(--white);
}

/* FAQ Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 30px 25px 100px;
  color: var(--dark-gray);
  line-height: 1.8;
  font-size: 1rem;
  margin: 0;
}

/* FAQ Animation */
@keyframes fadeInFaq {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item {
  animation: fadeInFaq 0.5s ease-out;
}

.faq-item:nth-child(1) {
  animation-delay: 0.1s;
}
.faq-item:nth-child(2) {
  animation-delay: 0.15s;
}
.faq-item:nth-child(3) {
  animation-delay: 0.2s;
}
.faq-item:nth-child(4) {
  animation-delay: 0.25s;
}
.faq-item:nth-child(5) {
  animation-delay: 0.3s;
}
.faq-item:nth-child(6) {
  animation-delay: 0.35s;
}
.faq-item:nth-child(7) {
  animation-delay: 0.4s;
}
.faq-item:nth-child(8) {
  animation-delay: 0.45s;
}

/* Map Section */
.map-section {
  position: relative;
}

.map-wrapper {
  position: relative;
  overflow: hidden;
}

.map-wrapper iframe {
  width: 100%;
  height: 450px;
  border: none;
  filter: grayscale(20%);
  transition: var(--transition);
}

.map-wrapper:hover iframe {
  filter: grayscale(0%);
}

/* Floating Animation Keyframes */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(50px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(50px) rotate(-360deg);
  }
}

/* Floating Elements */
.rotating-element {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: rotate 20s linear infinite;
  z-index: 1;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: float 8s ease-in-out infinite;
  z-index: 1;
}

.pulsing-element {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: pulse 3s ease-in-out infinite;
  z-index: 1;
}

.orbiting-element {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.4;
  animation: orbit 25s linear infinite;
  z-index: 1;
}

.section-with-elements {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 8px 20px;
  margin-bottom: 0;
  display: inline-flex;
}

/* Enhanced Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Responsive Design */
@media (max-width: 992px) {
  .contact-hero-section .page-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .contact-hero-section {
    padding: 120px 0 80px;
  }

  .contact-hero-section .page-title {
    font-size: 2.2rem;
  }

  .contact-hero-section .page-subtitle {
    font-size: 1.05rem;
  }

  .contact-form-wrapper {
    padding: 30px 20px;
  }

  .info-card {
    padding: 25px 20px;
    margin-bottom: 20px;
  }

  .captcha-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .captcha-box {
    margin-bottom: 15px;
  }

  #captchaCanvas {
    width: 100%;
    max-width: 250px;
    height: auto;
  }

  .btn-refresh-captcha {
    align-self: center;
  }

  .contact-form-wrapper .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .faq-question {
    padding: 20px;
    gap: 15px;
  }

  .faq-icon {
    width: 45px;
    height: 45px;
  }

  .faq-icon i {
    font-size: 1.1rem;
  }

  .faq-question h5 {
    font-size: 1rem;
  }

  .faq-toggle {
    width: 35px;
    height: 35px;
  }

  .faq-answer p {
    padding: 0 20px 20px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .contact-hero-section {
    padding: 100px 0 60px;
  }

  .contact-hero-section .page-title {
    font-size: 1.9rem;
  }

  .contact-hero-section .page-subtitle {
    font-size: 1rem;
  }

  .form-header h3 {
    font-size: 1.5rem;
  }

  .info-icon {
    width: 60px;
    height: 60px;
  }

  .info-icon i {
    font-size: 1.5rem;
  }
}
/* Force message visibility */
#formMessage {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 30px !important;
  margin-top: 20px !important;
  clear: both !important;
  width: 100% !important;
  z-index: 9999 !important;
  position: relative !important;
}

#formMessage .alert {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 !important;
  padding: 15px 20px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  animation: slideIn 0.3s ease-out !important;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#formMessage .alert-success {
  background-color: #d4edda !important;
  border: 1px solid #c3e6cb !important;
  border-left: 4px solid #28a745 !important;
  color: #155724 !important;
}

#formMessage .alert-danger {
  background-color: #f8d7da !important;
  border: 1px solid #f5c6cb !important;
  border-left: 4px solid #dc3545 !important;
  color: #721c24 !important;
}

#formMessage .alert i {
  font-size: 20px !important;
  vertical-align: middle !important;
}

#formMessage .alert strong {
  font-weight: bold !important;
}
