/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Kurale', serif;
  background: url('https://images.unsplash.com/photo-1617170788899-f29f65f60a4d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center fixed;
  background-size: cover;
  color: #4e2b1c;
  scroll-behavior: smooth;
}

/* Navbar Styles */
.navbar {
  background-color: rgba(139, 0, 0, 0.9);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
}

#logoImg {
  height: 40px;
  margin-right: 10px;
}

.logo-text {
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s, transform 0.3s;
  padding: 5px 10px;
  border-radius: 5px;
}

.nav-links li a:hover {
  color: #ffd700;
  background-color: rgba(255, 255, 255, 0.1);
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}

.hamburger span {
  height: 3px;
  background: white;
  border-radius: 5px;
  width: 100%;
}

/* Main Section */
.overlay {
  background-color: rgba(255, 255, 255, 0.85);
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  max-width: 800px;
  width: 100%;
  background: #fff;
  border: 15px solid transparent;
  border-image: url('https://i.imgur.com/YfLtmH3.png') 30 round;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.2rem;
  border-bottom: 3px solid #d4a373;
  padding-bottom: 10px;
  color: #5a3e2b;
}

/* Form Elements */
label {
  font-weight: 600;
  margin-top: 20px;
  display: block;
  color: #5a3e2b;
  font-size: 1.1rem;
}

input, textarea {
  width: 100%;
  padding: 12px 15px 12px 40px;
  margin-top: 8px;
  font-size: 1rem;
  border: 2px solid #d4a373;
  border-radius: 10px;
  background-color: #fdfaf6;
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 20px 20px;
  font-family: 'Kurale', serif;
  transition: 0.3s;
}

#name {
  background-image: url('https://img.icons8.com/ios-glyphs/30/7f4f24/user--v1.png');
}

#email {
  background-image: url('https://img.icons8.com/ios-glyphs/30/7f4f24/new-post.png');
}

#message {
  background-image: url('https://img.icons8.com/ios-glyphs/30/7f4f24/speech-bubble--v1.png');
  padding-top: 15px;
  padding-bottom: 15px;
  resize: vertical;
  min-height: 150px;
}

input:focus, textarea:focus {
  border-color: #7f4f24;
  outline: none;
  box-shadow: 0 0 8px #7f4f24;
}

.star-rating {
  direction: rtl;
  display: inline-flex;
  font-size: 2rem;
  justify-content: center;
  margin-bottom: 15px;
}

.star-rating input[type="radio"] {
  display: none;
}

.star-rating label {
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: gold;
}


/* Button */
button {
  margin-top: 30px;
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: bold;
  background: #7f4f24;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(127, 79, 36, 0.4);
  transition: 0.3s ease;
}

button:hover {
  background: #5b361b;
  transform: translateY(-3px);
}

button:active {
  transform: translateY(1px);
}

/* Map Section */
.map-section {
  margin-top: 40px;
  text-align: center;
  width: 100%;
}

.map-section h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #4e2b1c;
}

iframe {
  width: 100%;
  height: 350px;
  border: 4px solid #d4a373;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  background-color: rgba(34, 34, 34, 0.95);
  color: #fff;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.footer-section {
  flex: 1 1 250px;
}

.footer-section h2 {
  color: #f7c200;
  font-size: 1.4rem;
  border-bottom: 1px solid #f7c200;
  margin-bottom: 10px;
  padding-bottom: 5px;
}

.footer-section p {
  font-size: 14px;
  margin: 10px 0;
  cursor: pointer;
  transition: 0.3s;
}

.footer-section p:hover {
  color: #f7c200;
}

.footer-section.social img {
  margin: 10px 10px 0 0;
  vertical-align: middle;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #555;
  margin-top: 30px;
  padding-top: 20px;
  font-size: 14px;
  color: #ccc;
}

.feedback-item {
  background-color: #f3f3f3;
  padding: 10px;
  margin-top: 10px;
  border-left: 5px solid #28a745;
  border-radius: 5px;
}


/* Logo Animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.logo:hover img {
  animation: pulse 1.5s infinite;
}

/* Media Queries */
@media (max-width: 992px) {
  .container {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: rgba(139, 0, 0, 0.95);
    transform: translateY(-200%);
    transition: transform 0.3s ease-in-out;
    z-index: 998;
    text-align: center;
    padding: 20px 0;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    padding: 10px 0;
    display: block;
    width: 100%;
  }

  .container {
    padding: 20px;
    border-width: 10px;
  }

  h2 {
    font-size: 1.8rem;
  }

  .footer-section {
    flex: 1 1 45%;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 10px 15px;
  }

  .logo-text {
    font-size: 1.4rem;
  }

  .container {
    padding: 15px;
    border-width: 8px;
  }

  h2 {
    font-size: 1.5rem;
  }

  label, input, textarea, button {
    font-size: 0.95rem;
  }

  .footer-section {
    flex: 1 1 100%;
    text-align: center;
  }
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-section {
  text-align: left;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: repeat(1, 1fr);
  }
}
