* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  max-width: 100%;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  color: #333;
}

/* Typography fallbacks */
ul {
  font-family: 'Roboto', sans-serif;
  list-style-type: disc !important;
  padding-left: 20px;
}

li {
  display: list-item;
  margin-bottom: 5px;
}


/* ==========================================================================
   2. MOBILE FIRST STYLES (Default for Phones)
   ========================================================================== */

/* Header & Navigation */
#websiteheader {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  gap: 15px;
}

#claudialogo img {
  max-width: 400px;
  height: auto;
}

#menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

#menu a {
  font-size: 20px;
  font-weight: 700;
  color: black;
  text-decoration: none;
}

/* Banner Images */
#imageone, #about-qual-banner {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
#imageone { object-position: 50% 70%; }
#about-qual-banner { object-position: 0% 20%; }

/* About Section */
#about {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  gap: 20px;
}

#image2 {
  width: 60%;
  max-width: 250px;
  border-radius: 5px;
}

#abouttext {
  width: 100%;
}

#abouttext h1 {
  margin-bottom: 15px;
}

#abouttext p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Qualifications Section */
#qualifications {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 30px 20px;
}

#qualifications h1 {
  margin-bottom: 10px;
  font-size: 24px;
}

/* Specializations Container (Fixed absolute layout issues) */
#specializations {
  width: 100%;
  position: relative;
  background-color: #112d42; /* Dark backup background */
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* We turn the image into a true background layer */
#specializations img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25; /* Blends nicely with text over top */
  z-index: 1;
}

/* Stack sections clearly over background image */
#specializationstext, #expertise, #expertiseareas, #therapies {
  position: relative;
  z-index: 2;
  color: rgb(255, 255, 255);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  width: 100% !important;
  top: auto !important;
  left: auto !important;
}

#expertiseareas ul {
  column-count: 1; /* Keep simple on mobile */
}

/* Online Therapy Section */
#onlinetherapy {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

#onlinetherapy img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

#onlinetherapytext {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 25px;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  top: auto !important;
  left: auto !important;
}

#onlinetherapytext h1 { margin-bottom: 10px; }
#onlinetherapytext p { margin-bottom: 10px; line-height: 1.5; }

/* Fees Section */
#fees {
  padding: 40px 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

#fees h1 { margin-bottom: 10px; }
#fees p { margin-bottom: 15px; line-height: 1.5; }

/* Contact Section */
#contact {
  position: relative;
  width: 100%;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

#contact img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

#contactdetails {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 5px #000;
  top: auto !important;
  left: auto !important;
}

#contactdetails h1 { font-size: 28px; margin-bottom: 15px; }
#contactdetails h2 { font-size: 18px; margin-top: 10px; }
#contactdetails h3 { font-size: 16px; font-weight: normal; margin-bottom: 5px; }

#contact a {
  position: relative;
  z-index: 2;
  display: inline-block;
  background-color: black;
  border: 1px solid black;
  border-radius: 4px;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  font-size: 18px;
  text-align: center;
  top: auto !important;
  left: auto !important;
}

/* Footer elements */
#divider {
  width: 100%;
  height: 5px;
  background-color: #000;
}

#footer {
  background-color: blue;
  padding: 20px;
  text-align: center;
  color: white;
  font-size: 14px;
}

/* Secondary Pages / Forms styling */
#form {
  width: 90%;
  max-width: 600px;
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
  margin: 20px auto;
}

input[type="text"], .InitialInputs {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.button, #successtohome {
  background-color: #04AA6D;
  border: none;
  border-radius: 4px;
  color: white;
  padding: 12px 24px;
  font-size: 18px;
  cursor: pointer;
  display: block;
  margin: 15px auto 0 auto;
  width: 100%;
  max-width: 200px;
}

ul {
  font-family: 'Roboto', sans-serif;
  list-style-type: disc !important;
  padding-left: 2px;
}

#form {
    width: 50%;
    border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
 margin: 0 auto;
}

input[type="text"]{

    width: 100%;
  padding: 12px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.InitialInputs {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

#page2 {
  background-image: url('Forest.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* background-attachment: fixed; disabled on mobile to prevent massive iOS bugs */
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  padding: 20px 10px;
}

/* Logo Fix: Removed fixed left margin that clips off mobile screens */
#ClaudiaLogoPage2 {
  display: block;
  width: 80%;
  max-width: 250px;
  margin: 0 auto 20px auto; /* Centers perfectly on all device sizes */
}

#formtitle {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

/* Form Container: Scaled up to 95% on mobile so it doesn't look cramped */
#form {
  width: 95%;
  max-width: 600px;
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
  margin: 0 auto 30px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Inputs: Ensured text size doesn't trigger auto-zoom on mobile Safari */
input[type="text"], 
.InitialInputs {
  width: 100%;
  padding: 12px;
  margin: 8px 0 16px 0;
  display: block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px; /* Prevents iOS browser auto-zooming on focus */
}

.required-label::after {
  content: " *";
  color: red;
  font-weight: bold;
}

/* Success Container */
#success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

/* Success Image: Scaled up on mobile so it's readable */
#success img {
  width: 80%;
  max-width: 350px;
  height: auto;
  margin-bottom: 20px;
}

/* Unified Button Styling for both Submit & Return Home */
.button, 
#successtohome {
  background-color: #04AA6D;
  border: none;
  border-radius: 4px;
  color: white;
  padding: 14px 32px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: block;
  margin: 20px auto 0 auto;
  width: 100%;
  max-width: 250px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
}

.button:hover, 
#successtohome:hover {
  background-color: #038253;
}


/* ==========================================================================
   DESKTOP MEDIA QUERY (Adjustments for Larger Screens)
   ========================================================================== */
@media (min-width: 768px) {
  #page2 {
    background-attachment: fixed; /* Safe to turn back on for desktop viewports */
    padding: 50px 0;
  }

  #form {
    width: 50%; /* Scales down nicely to give breathing room on wide desktop displays */
    padding: 40px;
  }

  #success img {
    width: 50%; /* Keeps the victory graphic tight and proportional on desktops */
  }
}

/* ==========================================================================
   3. DESKTOP MEDIA QUERY (Scales beautifully for tablets & large screens)
   ========================================================================== */
@media (min-width: 768px) {
  
  #websiteheader {
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 60px;
  }

  #menu {
    gap: 25px;
  }

  #menu a {
    font-size: 30px;
  }

  #imageone, #about-qual-banner {
    height: 400px;
  }

  #about {
    flex-direction: row;
    padding: 50px 80px;
    gap: 50px;
  }

  #image2 {
    width: 25%;
  }

  #abouttext {
    width: 70%;
  }

  #qualifications {
    flex-direction: row;
    justify-content: space-between;
    padding: 40px 80px;
  }

  #qualifications > div {
    flex: 1;
  }

  /* Split layout on big screen inside the green backdrop */
  #specializations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 80px;
  }

  #expertiseareas ul {
    column-count: 2;
  }

  #onlinetherapy, #contact {
    min-height: 500px;
  }

  #contact {
    flex-direction: row;
    justify-content: center;
    gap: 50px;
  }

#contactdetails {
  width: auto; /* Prevents the text block from stretching too wide */
} /* <-- Make sure this closing bracket is here! */

/* Target the specific headings inside the contact details area */
#contactdetails h1 {
  font-size: 50px; /* Changes "Claudia Alves" */
}

#contactdetails h2 {
  font-size: 35px; /* Changes "Email:" and "Phone Number:" */
}

#contactdetails h3 {
  font-size: 25px; /* Changes the actual email and phone number */
}

  #contact a {
    font-size: 22px;
    padding: 15px 32px;
  }
}