:root {

  /**
   * colors
   */

  --rich-black-fogra-29: hsl(222, 44%, 8%);
  --middle-blue-green_40: #0096FF;
  --midnight-green: hsl(186, 100%, 19%);
  --midnight-green_a25: hsla(186, 100%, 19%, 0.25);
  --independece: hsl(236, 14%, 39%);
  --verdigris: #154f62;
  --ming: hsl(186, 72%, 24%);
  --space-cadet: hsla(226, 45%, 24%);
  --eerie-black: hsl(0, 0%, 13%);
  --alice-blue: hsl(187, 25%, 94%);
  --gray-web: hsl(0, 0%, 50%);
  --gainsboro: hsl(0, 0%, 87%);
  --white: hsl(0, 0%, 100%);
  --white_a20: hsla(0, 0%, 100%, 0.2);
  --white_a10: hsla(0, 0%, 100%, 0.1);
  --black: hsl(0, 0%, 0%);

  /**
   * typography
   */

  --ff-oswald: 'Oswald', sans-serif;
  --ff-rubik: 'Rubik', sans-serif;
  
  --headline-lg: 5rem;
  --headline-md: 3rem;
  --headline-sm: 2rem;
  --title-lg: 1.8rem;
  --title-md: 1.5rem;
  --title-sm: 1.4rem;
  
  --fw-500: 500;
  --fw-700: 700;

  /**
   * spacing
   */

  --section-padding: 120px;

  /**
   * box shadow
   */

  --shadow-1: 0px 2px 20px hsla(209, 36%, 72%, 0.2);
  --shadow-2: 0 4px 16px hsla(0, 0%, 0%, 0.06);

  /**
   * border radius
   */

  --radius-circle: 50%;
  --radius-12: 12px;
  --radius-6: 6px;
  --radius-4: 4px;

  /**
   * transition
   */

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
  --transition-3: 1s ease;
  --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
  --cubic-out: cubic-bezier(0.05, 0.83, 0.52, 0.97);

}

/**/
/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.header-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Header styles */
.header {
  position: relative;
  background-color: hsl(186, 100%, 19%);
  padding: 1rem 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  z-index: 1000;
}

.logo img {
  display: block;
  height: auto;
}

/* Navigation styles */
.navbar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: hsl(186, 100%, 19%);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.3s ease-in-out;
  z-index: 999;
}

.navbar.active {
  right: 0;
}

.navbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.nav-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.navbar-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.navbar-link {
  font-size: 1rem;
  color: #fff;
  transition: color 0.3s;
}

.navbar-link:hover {
  color: #007bff;
}

/* Social icons */
.social-list {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding-top: 2rem;
}

.social-link {
  font-size: 1.25rem;
  color: #555;
  transition: color 0.3s;
}

.social-link:hover {
  color: #007bff;
}

/* Nav open button */
.nav-open-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  display: none;
}

/* Appointment button */
.btn {
  background-color: #007bff;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  transition: background-color 0.3s;
  cursor: pointer;
}

.btn:hover {
  background-color:rgb(35, 32, 32);
}

.has-before {
  position: relative;
}

.title-md {
  font-size: 1rem;
  font-weight: 500;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 998;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Media Queries */
@media (min-width: 992px) {
  .navbar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 0;
    width: auto;
    max-width: none;
    background-color: transparent;
    transform: none;
    transition: none;
  }

  .navbar-top,
  .nav-close-btn,
  .overlay,
  .nav-open-btn {
    display: none;
  }

  .navbar-list {
    flex-direction: row;
    gap: 2rem;
  }

  .social-list {
    display: none;
  }

  .header .header-container {
    flex-wrap: nowrap;
  }
}


/**/

.form-container{
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(./assets/images/formBackgroundCompressed.avif);
    padding: 1rem  2rem;
  
  }
  /* Login Form */
  .login-form {
      padding: 5rem 0;
      max-width: 50rem;
      margin: 5rem auto;
    }
    
    .login-form form {
      display: flex;
      flex-direction: column;
    }
    
    .login-form form h1 {
      margin-bottom: .5rem;
    }
    .login-form form p {
      margin-bottom: 1rem;
    }
    
    .login-form form label {
      margin-bottom: .5rem;
    }
    
    .login-form form input {
      border: 1px solid #ccc;
      outline: none;
      padding: 1.5rem 0;
      text-indent: 1rem;
      font-size: 1.6rem;
      margin-bottom: 2rem;
      border-radius: 0.5rem;
    }
    
    .login-form form input::placeholder {
      font-size: 1.6rem;
      color: #222;
    }
    
    .login-form form .buttons {
      margin-top: 1rem;
    }
    
    .login-form form button {
      outline: none;
      border: none;
      font-size: 1.6rem;
      padding: 1rem 3rem;
      margin-right: 1.5rem;
      background-color:hsl(186, 72%, 24%);
      color: white;
      cursor: pointer;
    }
    
    .login-form form p a {
      color: hsl(186, 92%, 38%);
    }
    .error{
      color: red;
    }
    .login-form p{
      color: white;

    }
    .login-form h1{
      color: hsl(186, 92%, 38%);
    }
    .login-form label{
      color: white;

    }

    @media (max-width: 480px) {
      .form-container {
        padding: 15px;
      }
    
      h1 {
        font-size: 20px;
      }
    
      .buttons button {
        flex: 1;
        margin: 0 5px;
        margin-top: 10px;
        width: 100%;
      }
    
      .buttons {
        flex-direction: column;
        gap: 10px;
      }
    }
    
    
/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer {
  background-color: var(--midnight-green);
  color: var(--white);
  background-size: contain;
  background-position: top right;
  background-repeat: no-repeat;
  padding: 1rem;

}

.footer-top {
  display: grid;
  gap: 40px;
  padding-block-end: 60px;
}

.footer-brand {
  background-color: var(--ming);
  padding: 32px;
  border-radius: var(--radius-6);
}

.footer .logo { margin-block-end: 20px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-block-start: 12px;
}

.contact-item .item-icon { font-size: 4rem; }

.contact-link {
  display: inline;
  transition: var(--transition-1);
}

.contact-link:is(:hover, :focus-visible) { color: var(--verdigris); }

.footer-list-title {
  color: var(--white);
  font-weight: var(--fw-700);
  margin-block-end: 20px;
}

.footer .text { opacity: 0.7; }

.footer .address {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-start: 20px;
}

.footer .address ion-icon {
  font-size: 4rem;
  flex-shrink: 0;
}

.footer-link {
  margin-block-start: 8px;
  transition: var(--transition-1);
}

.footer-link:is(:hover, :focus-visible) { color: var(--verdigris); }

.footer-form .input-field {
  color: var(--white);
  border: 1px solid var(--white_a20);
  border-radius: var(--radius-4);
  padding: 8px 20px;
}

.footer-form .input-field::placeholder { color: inherit; }

.footer-form .btn {
  width: 100%;
  justify-content: center;
  margin-block: 12px 28px;
}

.footer-bottom {
  padding-block: 32px;
  border-block-start: 1px solid var(--white_a20);
}

.footer-bottom .social-list {
  justify-content: flex-start;
  gap: 8px;
  margin-block-start: 16px;
}

.footer-bottom .social-link {
  font-size: 1.4rem;
  padding: 12px;
  background-color: var(--white_a10);
  border-radius: var(--radius-circle);
  transition: var(--transition-1);
}

.footer-bottom .social-link:is(:hover, :focus-visible) { background-color: var(--verdigris); }
@media (min-width: 768px) {
  /**
   * FOOTER
   */

   .footer-top { grid-template-columns: 1fr 1fr; }

   .footer-brand { grid-column: 1 / 3; }
 
   .contact-list {
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     gap: 24px;
   }
 
   .footer-bottom {
     display: flex;
     justify-content: space-between;
     align-items: center;
   }
 
   .footer-bottom .social-list { margin-block-start: 0; }
 
 }
 
 
/**
 * responsive for large than 992px screen
 */

@media (min-width: 1200px) {

/**
   * FOOTER
   */

   .footer { background-size: auto; }

   .footer-top { grid-template-columns: repeat(4, 1fr); }
 
   .footer-brand {
     grid-column: 1 / 5;
     padding: 28px 56px;
     display: grid;
     grid-template-columns: 0.3fr 1fr;
     align-items: center;
   }
 
   .footer .logo { margin-block-end: 0; }
 
   .contact-list { justify-content: space-between; }
 
   .contact-list::after {
     top: 0;
     left: 50%;
     width: 2px;
     height: 100%;
     background-color: var(--white_a20);
   }
 
   .contact-item { margin-block-start: 0; }
 
 
 }

.btn {
  background-color: var(--verdigris);
  color: var(--white);
  font-weight: var(--fw-700);
  padding: 12px 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-6);
  overflow: hidden;
}

.btn::before {
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--eerie-black);
  border-radius: var(--radius-6);
  transition: var(--transition-2);
  z-index: -1;
}

.btn:is(:hover, :focus-visible)::before { transform: translateX(100%); }
#Subscribe{
  border: none;
  width:90%;
}
#email{
  background-color: transparent;
  width:90%;
  margin: auto;
  padding: 12px 36px;

}
ion-icon { display: block; }
.footer .address ion-icon {
  font-size: 4rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --headline-lg: 8rem;
    --headline-md: 4.8rem;

  }}
  #to-home-btn{
    opacity: 0;
  }
@media (width<900px) {
  .footer-list{
    padding-left: 2.5rem;
  }
  .footer{
  padding: .5rem;

  }
  #to-home-btn{
    opacity: 1;
  }

}
.footer-link:is(:hover, :focus-visible) { color: var(--middle-blue-green_40); }

