/* Page-Specific Heading Adjustments */
h1,
h2,
h3 {
  letter-spacing: 3px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header is handled by common-frontend.css */

/* HERO */
.contact-hero {
  height: 50vh;
  min-height: 400px;
  padding-top: 100px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-medium) 50%, var(--green-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url('images/background.webp');
  background-size: 400px;
  background-repeat: repeat;
  opacity: 0.08;
  animation: float 30s linear infinite;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-title {
  color: var(--gold);
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: 8px;
}

.page-subtitle {
  color: var(--gold);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* CONTACT SECTION */
.contact-section {
  padding: 4rem 0;
  background: var(--cream);
  position: relative;
  z-index: 1;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.section-title {
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold);
}

/* CONTACT INFO */
.contact-info {
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 26, 0, 0.08);
  height: fit-content;
}

.info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

.info-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.info-content h3 {
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.info-content p,
.info-content a {
  color: var(--green-medium);
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.info-content a:hover {
  color: var(--gold);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--cream);
}

.social-links a img {
  width: 32px;
  height: 32px;
  filter: brightness(0) saturate(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.social-links a img:hover {
  opacity: 1;
  transform: scale(1.2) rotate(5deg);
  filter: brightness(0) saturate(100%) invert(62%) sepia(50%) saturate(500%) hue-rotate(5deg);
}

/* CONTACT FORM */
.contact-form-container {
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 26, 0, 0.08);
}

.contact-form {
  margin-top: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1.1rem 1.3rem;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-family: 'Cinzel', sans-serif;
  font-size: 1rem;
  color: var(--green);
  background: var(--white);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.submit-btn {
  width: 100%;
  padding: 1.3rem 3rem;
  background: linear-gradient(135deg, var(--gold), #e6c64d);
  color: var(--green);
  border: none;
  border-radius: 50px;
  font-family: 'Cinzel', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
  width: 400px;
  height: 400px;
}

.submit-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-text,
.btn-loader {
  position: relative;
  z-index: 1;
}

/* Footer is handled by common-frontend.css */

/* Animations are handled by common-frontend.css */


/* Navigation and Overlays are handled by common-frontend.css */

/* ========== LIVE CHAT WIDGET ========== */

.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  height: 600px;
  max-height: calc(100vh - 140px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 26, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 9998;
  animation: slideIn 0.3s ease-out;
  border: 2px solid var(--gold);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-header {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-medium) 100%);
  color: var(--gold);
  padding: 16px;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--gold);
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

.chat-icon {
  font-size: 18px;
}

.chat-minimize {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 24px;
  padding: 4px 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-minimize:hover {
  transform: scale(1.2);
  color: white;
}

.chat-container {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}

/* Initial Chat Form */
.chat-initial {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
}

.chat-welcome {
  font-size: 14px;
  color: var(--green);
  margin-bottom: 20px;
  font-weight: 500;
}

.chat-start-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-start-form .form-group {
  margin: 0;
}

.chat-start-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  transition: all 0.2s ease;
  background: white;
}

.chat-start-form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.chat-start-btn {
  padding: 10px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: var(--gold);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chat-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 26, 0, 0.2);
}

.chat-start-btn:active {
  transform: translateY(0);
}

/* Active Chat */
.chat-active {
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  display: flex;
  margin-bottom: 8px;
  animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-visitor {
  justify-content: flex-end;
}

.message-admin {
  justify-content: flex-start;
}

.message-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  word-wrap: break-word;
}

.message-visitor .message-bubble {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-medium) 100%);
  color: var(--gold);
  border-radius: 12px 4px 12px 12px;
  box-shadow: 0 2px 8px rgba(0, 26, 0, 0.1);
}

.message-admin .message-bubble {
  background: var(--gold-light);
  color: var(--green);
  border-radius: 4px 12px 12px 12px;
  box-shadow: 0 2px 8px rgba(0, 26, 0, 0.05);
  border-left: 3px solid var(--gold);
}

.message-time {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 4px;
  padding: 0 4px;
}

/* Message Form */
.chat-message-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: white;
  border-top: 1px solid #e0e0e0;
}

#chatMessageInput {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--gold);
  border-radius: 20px;
  font-family: inherit;
  font-size: 13px;
  transition: all 0.2s ease;
}

#chatMessageInput:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: var(--gold);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 26, 0, 0.2);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

/* Chat Closed */
.chat-closed {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
}

.closed-message {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.closed-icon {
  font-size: 48px;
  display: block;
  animation: checkmark 0.5s ease-out;
}

@keyframes checkmark {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-45deg);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.closed-message p {
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.new-chat-btn {
  padding: 8px 16px;
  background: var(--green);
  color: var(--gold);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.new-chat-btn:hover {
  background: var(--green-light);
  box-shadow: 0 4px 12px rgba(0, 26, 0, 0.2);
}

/* Chat Toggle Button (Minimized) */
.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  border: 3px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 6px 20px rgba(0, 26, 0, 0.3);
  transition: all 0.3s ease;
  animation: floatPulse 2s ease-in-out infinite;
}

@keyframes floatPulse {

  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 6px 20px rgba(0, 26, 0, 0.3);
  }

  50% {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.4);
  }
}

.chat-toggle:hover {
  transform: scale(1.1);
  animation-play-state: paused;
}

.chat-toggle:active {
  transform: scale(0.95);
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid white;
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--green);
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .chat-widget {
    width: calc(100vw - 20px);
    height: 70vh;
    max-height: 600px;
    right: 10px;
    bottom: 10px;
  }
}