/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body { font-family: 'Manrope', sans-serif; }
h1, h2, h3 { font-family: 'Zilla Slab', serif; }

/* Header Styles */
header {
  background: linear-gradient(rgba(44, 107, 47, 0.1), rgba(0, 0, 0, 0.7)),
              url('../images/bg.jpg');
  background-size: cover;
  background-position: center;
  color: rgb(255, 255, 255);
  padding: 80px 20px;
  text-align: center;
  position: relative;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

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

.logo img {
  height: 55px;
  width: auto;
}

.auth {
  display: flex;
  gap: 15px;
}

#login-btn {
  position: relative;
  display: inline-block;
  margin: 1px;
  padding: auto;
  text-align: center;
  font-size: 18px;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
  transition: ease-out 0.5s;
  border: 1px solid #ffffff;
  padding:3px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 0 #ffffff6c;
}

#login-btn:hover {
  color: rgb(255, 255, 255);
  box-shadow: inset 0 -100px 0 0 #00000045;
}

#login-btn:active {
  transform: scale(0.9);
}

/* Appointment Section */
.appointment {
  padding: 60px 50px;
  background-color: #D4D1C1;
}

.appointment h2 {
  font-size: 32px;
  padding-bottom: 28px;
  text-align: center;
}

.appointment h2 span {
  color: #2C6B2F;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin:auto;
  align-items: stretch;
}

.card {
  border: 1px solid #A8D5BA;
  border-radius: 8px;
  padding: 10px;
  overflow: hidden;
  background: #deddd5;
  box-shadow: 0 5px 15px rgba(44, 107, 47, 0.149);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(44,107,47,0.15);
}

.card img {
  display: block;
  border-radius: 8px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-content {
  padding: auto;
  flex: auto;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 24px;
  padding: 8px;
  margin: auto;
}
.card-content p {
  font-size: 18px;
  text-align: center;
  padding: 8px;
  color: #2C6B2F;
  margin: center;
  flex-grow: 1;
}

/* See More Button Animation */
.see-more-btn {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  background: transparent;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  width: 12rem;
  height: auto;
  margin-top: auto;
}

.see-more-btn .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  margin: 0;
  width: 3rem;
  height: 3rem;
  background: #2C6B2F;
  border-radius: 1.625rem;
}

.see-more-btn .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #A8D5BA;
}

.see-more-btn .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

.see-more-btn .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.29rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #A8D5BA;
  border-right: 0.125rem solid #A8D5BA;
  transform: rotate(45deg);
}

.see-more-btn .button-text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0;
  margin: 0 0 0 1.85rem;
  color: #2C6B2F;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

.see-more-btn:hover .circle {
  width: 100%;
}

.see-more-btn:hover .circle .icon.arrow {
  background: #A8D5BA;
  transform: translate(1rem, 0);
}

.see-more-btn:hover .button-text {
  color: #ffffff;
}

.see-more-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}


/* Contact Section Styles */
.contact {
  padding: auto;
  background-color: #D4D1C1;
  text-align: center;
}

.contact h2 {
  font-size: 16px;
  margin-bottom: 20px;
  color: #000000;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: #4caf4f;
  color: rgb(255, 255, 255);
  text-decoration: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s;
}

.contact-btn:hover {
  background: #4e63db;
}

.facebook-btn {
  background: #1877f2;
}

.facebook-btn:hover {
  background: #166fe5;
}

.email-btn {
  background: #dc3545;
}

.email-btn:hover {
  background: #c82333;
}

.contact-btn svg {
  fill: currentColor;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #D4D1C1;
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(44,107,47,0.2);
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: modalopen 0.4s;
}

@keyframes modalopen {
  from {opacity: 0; transform: translateY(-60px);}
  to {opacity: 1; transform: translateY(0);}
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 10px;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.modal h2 {
  margin-bottom: 20px;
  text-align: center;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #A8D5BA;
  border-radius: 5px;
  font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4CAF50;
}

.submit-btn {
  width: 100%;
  background: #4CAF50;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #2C6B2F;
}

#confirmation-details {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 5px;
  margin-bottom: 20px;
}

.backdrop h2 {
  font-size: 10px;
  line-height: 1.1;
  font-weight: 600;
  text-transform: none;
  margin: 1rem 0;
}

@media (min-width: 900px) {
  .backdrop h2 {
    font-size: 40px;
  }
}

/* Success Modal Styles */
.success-modal {
  background-color: #D4D1C1;
  border: 1px solid #A8D5BA;
  color: #4CAF50;
}

.success-modal h2 {
  color: #2C6B2F;
  margin-bottom: 15px;
}

.success-modal #success-details {
  padding: 15px;
  background: #D4D1C1;
  border-radius: 5px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.success-modal .submit-btn {
  background: #4CAF50;
  width: auto;
  padding: 10px 20px;
  margin: 0 auto;
  display: block;
}

.success-modal .submit-btn:hover {
  background: #2C6B2F;
}

.success-modal .close {
  color: #2C6B2F;
}

.success-modal .close:hover {
  color: #2C6B2F;
}

/* Form validation styles */
.error-message {
  color: red;
  font-size: 0.875em;
  margin-top: 5px;
  display: block;
}

.password-container {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 0.875em;
}

.toggle-password:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 15px;
  }

  .logo-container {
    flex-direction: column;
    gap: 10px;
  }

  .appointment {
    padding: 40px 15px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    margin: 5% auto;
    padding: 20px;
  }

  .contact {
    padding-bottom: 28px;
  }

  .contact-buttons {
    flex-direction: auto;
    align-items: center;
  }
}
