/*@font-face {
	font-family:Walkway Black;
	src: url(../fonts/Antipasto_regular.otf);
    }*/
   
@font-face {
	font-family:custom;
	src: url(../fonts/ArialicHollow.ttf);
    }   
   
/* Global box-sizing */
* {
    box-sizing: border-box;
}

/* ===== RESPONSIVE DESIGN - 1000px and below ===== */
@media (max-width: 1000px) {
    #container {
        padding: 0.5rem;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    #container #top {
        flex-direction: column;
        gap: 1.5rem;
        margin: 1.5rem 0 0 0;
    }
    
    #top_left {
        width: 100%;
    }
    
    #top #banner {
        width: 100%;
        text-align: left;
    }
    
    #top #banner h3 {
        font-size: 3rem;
        padding: 0 0 0 0.5rem;
        margin: 0;
    }
    
    #top #title_block {
        text-align: left;
        padding: 0.5rem;
        margin: 0;
    }
    
    #top #title_block h2 {
        font-size: 1.2rem;
        margin: 0 0 0.5rem 0;
        padding-top: 20px;
    }
    
    #top #title_block h3 {
        font-size: 0.8rem;
        margin: 0;
    }
    
    #top #banner p {
        margin: 0;
        padding: 0 0 0 0.5rem;
        font-size: 0.85rem;
        color: black;
    }
    
    #top .banner-line {
        margin: 0.5rem 1.5rem 0 0.5rem;
    }
    
    #top #title_block {
        margin-top: 1rem;
    }
    
    #main_container {
        flex-direction: column;
    }
    
    #main_container #left_pane {
        display: none; /* Hide sidebar for hamburger menu */
    }
    
    #right_pane {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    #right_pane #content_text {
        padding: 1rem;
        font-size: 1.05em;
        margin: 1.5rem 0.75rem;
        box-sizing: border-box;
        line-height: 1.6;
    }
    
    #content_text .welcome-section {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 1.5rem;
    }
    
    #content_text .welcome-left {
        width: 100%;
        gap: 1.5rem;
    }
    
    #content_text .content-image-container {
        width: 100%;
        order: -1; /* Move image to top */
    }
    
    #content_text .content-portrait {
        max-width: 300px;
        box-sizing: border-box;
    }
    
    #content_text .therapy-container {
        flex-direction: column;
        gap: 2rem;
        margin: 1.5rem 0;
        width: 100%;
        box-sizing: border-box;
        align-items: center;
    }
    
    #content_text .therapy-container .therapy-info,
    #content_text .therapy-container .contact-form-compact {
        width: 100%;
        flex: 1;
        padding: 1.5rem;
        box-sizing: border-box;
        max-width: 100%;
    }
    

    
                   #content_text .specialty-container {
          margin: 1.5rem 0;
          background-color: #F8F9FA;
          width: 100%;
          min-width: auto;
          box-sizing: border-box;
          flex-direction: column;
          align-items: center;
      }
    
         #content_text .specialty-highlight {
         padding: 1.5rem;
         margin: 0;
         box-sizing: border-box;
         width: 100%;
         overflow-x: hidden;
         min-width: 300px;
     }
    
         #content_text .services-highlight {
         padding: 1.5rem;
         margin: 0;
         width: 300px;
     }
    
    #content_text .services-highlight ul {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    #content_text .services-highlight li {
        width: 50%;
        border-left: 1px dashed #E8A87C;
        border-right: 1px dashed #E8A87C;
    }
    
    #content_text .contact-form-compact .input,
    #content_text .contact-form-compact textarea {
        font-size: 16px;
        padding: 0.75rem;
        min-height: 44px;
        width: 100%;
        min-width: 150px;
        max-width: 500px;
    }
    
    #content_text .contact-form-compact label {
        text-align: left;
    }
    
    #content_text .contact-form-compact .form-row,
    #content_text .contact-form-compact .input-container {
        align-items: center;
    }
    

    
         #content_text .contact-form-compact textarea {
         min-height: 120px;
     }
     
                       /* Mobile contact form width override */
       #content_text .therapy-container .contact-form-compact,
       #content_text .specialty-container {
           width: 100%;
       }
    
    #content_text .service-button {
        padding: 1.25rem;
        margin-bottom: 1rem;
        min-height: 44px; /* Minimum touch target size */
    }
    
    h1 {
        font-size: 1.8rem;
        margin: 0 0 1.5rem 0;
    }
    
    h3 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .input, textarea {
        max-width: 100%;
    }
    
    #right_pane #content_heading .font-controls {
        display: none;
    }
    
    #right_pane #content_text ul {
        display: block;
    }
    
    #right_pane #content_text .services-highlight ul {
        display: flex;
    }
    
    #right_pane #content_heading h1 {
    margin: 0;
    padding-left: 15px;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    font-size: 1.75rem;
    text-transform: uppercase;
}
    
    #right_pane #content_heading {
        height: unset;
    }
    
    #content_text h3 {
        font-size: 1.2rem;
    }
    
    .specialty-highlight h3, .services-highlight h3 {
        font-size: 1.2rem;
    }
    
    .contact-form-compact h3 {
        font-size: 1.2rem;
    }
    
    .contact-form-compact .submit-btn {
        font-size: 0.75rem;
    }
    
    #tags {
        clear: both;
        margin: 0 0 1.5rem 0;
        border: none;
        text-align: center;
        font-size: 0.9rem;
        padding: 3rem 1rem 0 1rem;
    }
    
    #links ul {
        padding: 0;
    }
    
    /* Form accessibility improvements */
    .required {
        color: #dc3545;
        font-weight: bold;
    }
    
    .form-help {
        font-size: 0.875rem;
        color: #6c757d;
        margin-top: 0.25rem;
    }
    
    .input:focus,
    textarea:focus {
        outline: 2px solid #2D5A6B;
        outline-offset: 2px;
    }
    
    .submit-btn {
        background: linear-gradient(135deg, #2D5A6B 0%, #4A90A4 100%);
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 6px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    
    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(45, 90, 107, 0.3);
    }
    
    .submit-btn:focus {
        outline: 2px solid #2D5A6B;
        outline-offset: 2px;
    }
    
    .submit-btn:active {
        transform: translateY(0);
    }
    
    /* Mobile responsive contact form */
    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-form-section {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .contact-form-section h4 {
        font-size: 1.1rem;
    }
    
    .contact-form .input,
    .contact-form textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .contact-form textarea {
        min-height: 100px;
    }
}



/* Contact form section styling - Desktop styles */
.contact-form-section {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2D5A6B;
}

.contact-form-section h4 {
    color: #2D5A6B;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-form-section p {
    margin-bottom: 1.5rem;
    color: #666;
}

.contact-form {
    max-width: 100%;
}

/* Desktop overrides for mobile flex-direction changes */
@media (min-width: 1001px) {
    #top {
        flex-direction: row;
    }
    
    #main_container #left_pane {
        display: flex;
    }
    
    #right_pane {
        width: auto;
    }
    
    #content_text .welcome-section {
        flex-direction: row;
    }
    
    #content_text .therapy-container {
        flex-direction: row;
    }
    
    #content_text .therapy-container .therapy-info {
        width: 50%;
    }
    
    #content_text .therapy-container .contact-form-compact {
        min-width: 300px;
    }
    
    .contact-form .form-row {
        flex-direction: row;
    }
    
    .contact-form-compact .form-row {
        flex-direction: row;
    }
    
    .welcome-left {
        flex-direction: row;
    }
    
    .content-image-container {
        flex-direction: row;
    }
}

.contact-form .form-group {
    flex: 1;
    margin-bottom: 1rem;
}

.contact-form .form-group:last-child {
    margin-bottom: 0;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2D5A6B;
}

.contact-form .input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form .input:focus,
.contact-form textarea:focus {
    outline: 2px solid #2D5A6B;
    outline-offset: 2px;
    border-color: #2D5A6B;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

img {
    display: block;
}



p { 
  font-family: Helvetica, Trebuchet MS, sans-serif;
  margin: 0 0 0.75rem 0;
  line-height: 1.6;
}

.therapy-intro {
  font-weight: bold;
}

ul {
   text-align:center;
   list-style:none; 
   font-family: Helvetica, Trebuchet MS, sans-serif;
}

ol {
   font-family: Helvetica, Trebuchet MS, sans-serif;
	list-style:none;
	padding:0;
	margin:0;
}

li{
	padding-bottom:0.75rem;
	margin-bottom:0.25rem;
}

h1, h2, h3, h4, h5{
    font-family:Candara, Tahoma, Verdana;
}
 
a:link{
    color:#4A90A4;
}

a:visited{
    color:#4A90A4;
}

a:active{
    color:#2D5A6B;
}

a:hover{
    color:#2D5A6B;
    text-decoration:underline;
}


h1 {
    line-height: 1.2;
    font-size: 30px;
    margin: 0 0 2.5rem 0;
    color: #2D5A6B;
    text-transform: uppercase;
}

h2 {
   font-size:18px;
   line-height:1.3;
   color:#2D5A6B;
   margin:0 0 0.5rem 0;
}

h3 {
    font-size: 30px;
    color: #2D5A6B;
    /* margin: 0 0 0.5rem 0; */
    line-height: 1.2;
}



h4 {
   font-size:20px;
   line-height:0px;
	color: #2D5A6B;
}

h5 {
   font-size:20px;
   line-height:0px;
	color: #2D5A6B;
}

body { 
	margin:0;
    padding:0;
    border:none;
    font-size:14px;
    text-align:center;
    line-height:1.5;
    color:#5A6C7D;
    box-sizing: border-box;
}

#background_block {
    width: 100%;
    position: absolute;
    /* top: 159px; */
    left: 0;
    z-index: -1;
    height: 370px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 1) 100%), url(../graphics/jpg/sunrise_ocean.jpg) no-repeat center center;
    background-size: cover;
    opacity: 0.8;
}

#container {
	max-width:1400px;
	width:100%;
    min-height:100vh;
    margin:0 auto;
    text-align:left;
	display:flex;
	flex-direction:column;
    padding: 0 1rem;
}

#top  {
    border:none;
    margin:2rem 0 0 0;
	max-width:1400px;
	width:100%;
	display:flex;
	align-items:flex-start;
    gap: 2rem;
}



/*TOP LEFT--------------------------------------------------------------------------------------------------------------------------------------*/

#top_left{
	flex:1;
	padding:0;
    border:none;
    min-height:281px;
    margin:0;
	display:flex;
	flex-direction:column;
}

#banner {
	padding: 0px;
	margin: 0px;
	border: none;
	height: 113px;
	width: 60%;
	text-align: left;
}

#banner h3 a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

#banner h3 a:hover {
	color: #E8A87C;
}

#banner h3 {
    margin: 0;
    padding: 0 0 0 1.5rem;
    font-size: 3.5rem;
    font-weight: bold;
    color: black;
    line-height: 1.2;
}

#banner p {
    margin:0;
    padding:0 0 0 1.5rem;
    font-size:1.25rem;
    color:#6B7280;
    line-height:1.4;
}

.banner-line {
    height:4px;
    background-color:#E8A87C;
    margin:1rem 1.5rem 0 1.5rem;
    border-radius:8px;
}

#title_block h2 {
    color: black;
    font-size: 30px;
    line-height: 1.2;
    margin: 0 0 2.5rem 0;
    color: #2D5A6B;
    font-family: Candara, Tahoma, Verdana;
}

#title_block h3 {
 	color: black;
	font-size:23px;
   	line-height:8px; 
}

#title_block{
    padding: 1.5rem 0 1.5rem 1.5rem;
    margin: 0;
    border: none;
    vertical-align: top;
    text-align: left;
}








#main_container {
    width: 100%;
    display: flex;
}



/*LEFT PANE--------------------------------------------------------------------------------------------------------------------------------------*/

#left_pane {
    margin:0 2rem;
    border:2px solid #E8A87C;
    border-radius:8px;
    font-family: Arial, Trebuchet MS, sans-serif;
	padding:0;
	display:flex;
	flex-direction:column;
    background-color: white;
    max-width: 280px;
    min-width: 250px;
    flex-shrink: 0;
}
    


/*MENU--------------------------------------------------------------------------------------------------------------------------------------*/

#menu_heading {
    margin: 0 auto;
    background-color: #F8F9FA;
    width: 100%;
    text-align: center;
    border-radius: 8px 8px 0 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}


 
#menu {
    margin: 0 auto;
    border: none;
    line-height: 48px;
    width: 196px;
    font-size: 22px;
}



#menu ul {
    margin:0;
    padding:0;
    list-style:none;
}

#menu li {
	margin:0;
	padding:23px 0 0 0;
	transition: all 0.3s ease;
}

#menu li:hover {
    transform: translateY(-3px);
}

/* Prevent APS logo from moving - target the last li element */
#menu li:last-child {
    transition: none;
}

#menu li:last-child:hover {
    transform: none;
}

#menu li:hover, #menu li:hover a {
  	background-position: 40px -46px;
}

#menu li:hover a {
  	background-position: 40px -46px;
}

#menu a {
    color: #2D5A6B;
    display: block;
    text-decoration: none;
    padding: 0.75rem 1rem;
    margin: 0 1rem;
    width: calc(100% - 2rem);
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    background-color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#menu a:hover {
    background-color: #E8A87C;
    color: white;
    border-color: #E8A87C;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(232,168,124,0.3);
}

#menu a:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(232,168,124,0.2);
}

#menu a:focus {
    outline: 2px solid #E8A87C;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(232,168,124,0.1);
}

#aps-logo {
    background-color: #003366;
    padding: 0.75rem 1rem;
    margin: 0.25rem 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100% - 2rem);
    box-sizing: border-box;
}

#aps-logo svg {
    max-width: 100%;
    height: auto;
}
	
#menu > ul a {
	width: auto;
}



#home #nav-home, #contact #nav-contact,
#about #nav-about,
#services #nav-services{
   	background-position:0% -150px;
}

#home #nav-home a, #contact #nav-contact a,
#about #nav-about a,
#services #nav-services a{
   	background-position:100% -150px;
}




 


/*-----------------------------------------------------------------------------*/

#right_pane {
    flex:1;
    flex-shrink: 1;
    border:2px solid #E8A87C;
    border-radius:8px;
    padding:0;
    margin:0 2rem 0 0;
	display:flex;
	flex-direction:column;
    background-color: white;
}

#content_heading {
    padding: 0rem 1.5rem 0 1.5rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    background-color: #F8F9FA;
    border-radius: 8px 8px 0 0;
    height: 80px;
}

#content_heading .font-controls{
    display:flex;
    align-items:center;
    gap:5px;
    padding-right:1.5rem;
}



#content_heading h1{
    margin:0;
    padding-left:30px;
    font-size: 1.75rem;
    font-weight: bold;
    text-transform: uppercase;
}



 /*--------TEXT SIZE----------------------------------------------------------------------*/

#mintext a{
    padding:0.75rem;
    margin:0;
    border:2px solid #E5E7EB;
    border-radius:8px;
    cursor:pointer;
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    background-color:#ffffff;
    color:#6B7280;
    font-size:16px;
    font-weight:600;
    text-decoration:none;
    transition:all 0.3s ease;
    box-shadow:0 2px 4px rgba(0,0,0,0.1);
    user-select:none;
}

#mintext a:hover {
  	background-color:#F8F9FA;
    border-color:#9CA3AF;
    color:#6B7280;
    box-shadow:0 4px 8px rgba(0,0,0,0.15);
    transform:translateY(-2px);
}

#mintext a:active {
    transform:translateY(0);
    box-shadow:0 2px 4px rgba(0,0,0,0.1);
}

#mintext a:focus {
    outline:2px solid #6B7280;
    outline-offset:3px;
    box-shadow:0 0 0 4px rgba(107,114,128,0.1);
}
 
#maxtext a{
    padding:0.75rem;
    margin:0;
    border:2px solid #E5E7EB;
    border-radius:8px;
    cursor:pointer;
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    background-color:#ffffff;
    color:#6B7280;
    font-size:16px;
    font-weight:600;
    text-decoration:none;
    transition:all 0.3s ease;
    box-shadow:0 2px 4px rgba(0,0,0,0.1);
    user-select:none;
}

    
#maxtext a:hover {
    background-color:#F8F9FA;
    border-color:#9CA3AF;
    color:#6B7280;
    box-shadow:0 4px 8px rgba(0,0,0,0.15);
    transform:translateY(-2px);
}

#maxtext a:active {
    transform:translateY(0);
    box-shadow:0 2px 4px rgba(0,0,0,0.1);
}

#maxtext a:focus {
    outline:2px solid #6B7280;
    outline-offset:3px;
    box-shadow:0 0 0 4px rgba(107,114,128,0.1);
}

 


/*-------------------------------------------------------------------------------------------------------*/

#content img {
	padding: 0;
} 

#content{
	margin:0;
	padding:0 1.5rem;
    border:none;
    display:flex;
	flex-direction:column;
}

#content_text{
    margin:2.5rem 2rem;
    padding:3rem;
    font-size:1.1em;
    line-height:1.7;
	flex:1;
    background-color:#ffffff;
    border-radius: 8px;
}

#content_text h3 {
    margin: 2.5rem 0 1.5rem 0;
}

#content_text h3:first-of-type {
    margin-top: 0;
}

#content_text p {
    margin: 1.5rem 0 2rem 0;
}

.specialty-container {
    width: 100%;
    min-width: 300px;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}



.specialty-highlight {
    padding: 1.5rem;
    border-radius: 8px;
    width: 100%;
    background: #F8F9FA;
}



.services-highlight {
    margin: 0;
    padding: 1.5rem 1.5rem 1.5rem 0;
    border-radius: 8px;
    width: 50%;
}

#content_text .services-highlight ul {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 0;
    box-sizing: border-box;
}

#content_text .services-highlight li {
    border: 1px dashed #E8A87C;
    background: none;
    box-shadow: none;
    width: 50%;
    padding: 1rem 0;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    box-sizing: border-box;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#content_text .services-highlight li:nth-child(even) {
    border-left: none;
}

#content_text .services-highlight li:not(:nth-last-child(-n+2)) {
    border-bottom: none;
}

.specialty-highlight ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.specialty-highlight li {
    border: 1px dashed #6B7280;
    background: none;
    box-shadow: none;
}



.therapy-contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}



/* Menu-specific qualifications styling */
#left_pane .qualifications {
    padding: 1.5rem 1.5rem 3rem 1.5rem;
    background: linear-gradient(to bottom, #ffffff 0%, #F8F9FA 20%, #F8F9FA 80%, #ffffff 100%);
    border-radius: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

#left_pane .qualifications h3 {
    font-size: 0.9rem;
    text-align: center;
}

#left_pane .qualifications ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#left_pane .qualifications li {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    padding: 0.25rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.specialty-highlight h3, .services-highlight h3, #left_pane .qualifications h3 {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



.contact-form-compact h3 {
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    padding: 1rem 0 0 1rem;
}

/* Compact form styles - ensure they don't affect regular contact forms */
.contact-form-compact .form-row,
.contact-form-compact .input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.contact-form-compact .form-group {
    margin-bottom: 1rem;
}

.contact-form-compact label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2D5A6B;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    font-family: Helvetica, Trebuchet MS, sans-serif;
    min-width: 150px;
    max-width: 500px;
}

.contact-form-compact .input,
.contact-form-compact textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: Helvetica, Trebuchet MS, sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-width: 150px;
    max-width: 500px;
}

.contact-form-compact .input:focus,
.contact-form-compact textarea:focus {
    outline: none;
    border-color: #E8A87C;
    box-shadow: 0 0 0 3px rgba(232,168,124,0.1);
}

.contact-form-compact .submit-btn {
    background-color: #E8A87C;
    color: white;
    border: 2px solid #E8A87C;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: Helvetica, Trebuchet MS, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin: 0 auto;
    display: block;
}

.contact-form-compact .submit-btn:hover {
    background-color: white;
    color: #E8A87C;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(232,168,124,0.3);
}

#submit-help {
    font-family: Helvetica, Trebuchet MS, sans-serif;
    margin-top: 1.5rem;
    text-align: center;
}

/* Form Messages */
.form-message {
    margin-top: 1rem;
    text-align: center;
    font-family: Helvetica, Trebuchet MS, sans-serif;
}

.success-message {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.error-message {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Disabled submit button */
.contact-form-compact .submit-btn:disabled {
    background-color: #6C757D;
    border-color: #6C757D;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.contact-form-compact .submit-btn:disabled:hover {
    background-color: #6C757D;
    color: white;
    transform: none;
    box-shadow: none;
}

#content_text > h3:first-of-type {
    margin-top: 0;
}



#content_text ul {
    list-style-type: none;
    margin: 1.5rem 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

#content_text ul li {
    background: white;
    border: 2px solid #E8A87C;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}








/*--------------------FORM---------------------------------*/

form {
    /* border: 1px solid #E5E7EB; */
    /* border-radius: 8px; */
    padding: 1rem;
    /* margin: 2rem 0; */
    background-color: #ffffff;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.06); */
}
        
fieldset {  
		padding:0 0px 0 0px;
		margin:0 0 0 0;
		border:none;
        text-align:left;

}

fieldset li {  
         width: 100%;
         padding-bottom: 10px; 
} 



label {  
        display:block;
        width:100%;
		margin:0;
		padding:0 0 0 0px;
		text-align:left;
		}

fieldset img {  
  	display:inline;
  }



.input {
		margin:0;
		border: 1px solid #D1D5DB;
		width:100%;
		max-width:300px;
		padding:0.5rem;
		border-radius:8px;
}

.input:hover {
             border:1px solid #4A90A4;
             box-shadow:0 0 5px rgba(74, 144, 164, 0.3);
}

textarea{
	border: 1px solid #D1D5DB;
	margin-bottom:10px;
	padding:0.5rem;
	border-radius:8px;
	width:100%;
	max-width:300px;
	min-height:100px;
}

textarea:hover {
	border:1px solid #4A90A4;
	box-shadow:0 0 5px rgba(74, 144, 164, 0.3);
}
 
fieldset.submit {  
		padding:1rem 0;
		border:none;
		background: transparent;
}

fieldset.submit input[type="submit"] {
    background-color: #E8A87C;
    color: #ffffff;
    border: 2px solid #E8A87C;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(232,168,124,0.2);
    min-width: 120px;
}

fieldset.submit input[type="submit"]:hover {
    background-color: #ffffff;
    color: #E8A87C;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(232,168,124,0.3);
}

fieldset.submit input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(232,168,124,0.2);
}

fieldset.submit input[type="submit"]:focus {
    outline: 2px solid #E8A87C;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(232,168,124,0.1);
}

fieldset.reject {  
		padding:0 0 0 0;
        float:left;
}

fieldset.captcha {  
		padding:0 0 0 0;
		margin:0;
}

#incorrect_captcha {
        border:1px dashed #059669;
        margin:0;
        width:auto;
        text-align:center;
}




/*--BOTTOM-----------------------------------------------------------------------------------------------------------------------------*/

#content_bottom{
	margin:0;
    padding:0;
    border:none;
    width:100%;
    height:20px;
}
#bottom{
    width:100%;
	margin:3rem 0 0 0;
    padding:0;
    background: linear-gradient(to bottom, white, #F3F4F6);
	display:flex;
	flex-direction:column;
}

#tags{
    clear:both;
	margin:0 0 2rem 0;
    border:none;
    text-align:center;
    font-size:0.9rem;
	padding:3rem 2rem 0 2rem;
	line-height:1.6;
	color:#9CA3AF;
}

#links{
    padding:1.5rem 0;
    margin:0;
    font-family: Arial, Trebuchet MS, sans-serif;
    clear:both;
    word-spacing:2rem;
    background:none;
    font-size:1rem;
    width:100%;
    border-top:1px solid #D1D5DB;
    text-align:center;
}
#links li{
   display:inline;
}


#footer{
	padding:1.5rem 0;
	margin:0;
    text-align:center;
    height:auto;
    background:none;
    font-size:0.8rem;
    color:#9CA3AF;
    border-top:1px solid #D1D5DB;
}




/* ===== CONTENT STRUCTURE ===== */
.welcome-section {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 2rem;
}

.welcome-left {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-header {
    width: 100%;
    margin-bottom: 0;
}

.content-image-container {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-image {
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

.portrait-container {
    text-align: center;
    margin: 0;
}

.therapy-container {
    margin: 2rem 0;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
}

.therapy-container .therapy-info {
    width: 50%;
    padding-top: 1.5rem;
}




#content_text .therapy-container .therapy-info h3 {
    margin-top: 1rem;
}

#title_block h3 a {
    color: inherit;
    text-decoration: none;
}

.specialty-highlight ul li a {
    color: inherit;
    text-decoration: none;
}

.service-button {
    display: block;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #E8A87C;
    border-radius: 8px;
    color: #2D5A6B;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-button a {
    color: inherit;
    text-decoration: none;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

#content_text ul li.service-button:hover {
    background-color: #E8A87C;
    color: white;
    border-color: #E8A87C;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(232,168,124,0.3);
}

.therapy-container .contact-form-compact {
    min-width: 300px;
    padding: 1.5rem;
    background: #F8F9FA;
    border-radius: 8px;
}

.content-portrait {
    width: 100%;
    margin: 0 auto;
    display: block;
}

/* ===== MOBILE MENU STYLES ===== */

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 1000px) {
    /* Banner Menu Container */
    #banner-menu-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    #banner-menu-container h3 {
        margin: 0;
        flex: 1;
        font-size: 2.5rem;
        max-width: 230px;
    }
    
    #banner-menu-container #top_right {
        display: flex;
        flex-shrink: 0;
        padding: 0;
        margin-left: 1rem;
        align-self: flex-start;
        margin-top: 1rem;
        margin-right: 1rem;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 44px;
        height: 36px;
        cursor: pointer;
        z-index: 999;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 4px;
        background-color: #2D5A6B;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(10px, -10px);
    }
    
        /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1000;
        visibility: hidden;
    }

    .mobile-menu-overlay.active {
        visibility: visible;
    }

    .mobile-menu-content {
        position: fixed;
        top: 1rem;
        left: -100%;
        width: 95%;
        height: calc(100% - 1rem);
        display: flex;
        flex-direction: column;
        background: linear-gradient(135deg, #2D5A6B 0%, #4A90A4 100%);
        color: white;
        padding: 2rem 1.5rem;
        box-sizing: border-box;
        transition: left 0.3s ease;
        z-index: 1001;
    }

    .mobile-menu-overlay.active .mobile-menu-content {
        left: 0;
    }
    
    .mobile-menu-overlay.closing .mobile-menu-content {
        left: -100%;
    }
    
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .mobile-menu-header h3 {
        font-size: 1.5rem;
        margin: 0;
        color: white;
        font-weight: 600;
    }
    
    .mobile-menu-close {
        background: none;
        border: none;
        cursor: pointer;
        width: 44px;
        height: 44px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1002;
        min-width: 44px;
        min-height: 44px;
    }
    
    .mobile-menu-close span {
        display: block;
        width: 20px;
        height: 2px;
        background-color: white;
        position: absolute;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-close span:nth-child(1) {
        transform: rotate(45deg);
    }
    
    .mobile-menu-close span:nth-child(2) {
        transform: rotate(-45deg);
    }
    
    .mobile-menu-nav {
        flex: 1;
        margin-bottom: 2rem;
    }
    
    .mobile-menu-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-menu-nav li {
        margin-bottom: 1rem;
    }
    
    .mobile-menu-nav a {
        display: block;
        padding: 1.25rem;
        color: white;
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.3s ease;
        background-color: rgba(255, 255, 255, 0.1);
        min-height: 48px; /* Minimum touch target size */
        display: flex;
        align-items: center;
    }
    
    .mobile-menu-nav a,
    .mobile-menu-nav a:link,
    .mobile-menu-nav a:visited {
        color: white;
    }
    
    .mobile-menu-nav a:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: translateX(10px);
    }
    
    .mobile-menu-nav li.current-page a {
        color: rgba(255, 255, 255, 0.5);
        background-color: rgba(255, 255, 255, 0.05);
        cursor: default;
        pointer-events: none;
    }
    
    .mobile-menu-nav li.current-page a:hover {
        background-color: rgba(255, 255, 255, 0.05);
        transform: none;
    }
    
    .mobile-menu-footer {
        border-top: 2px solid rgba(255, 255, 255, 0.2);
        padding-top: 1.5rem;
    }
    
    .mobile-qualifications h4 {
        font-size: 1.1rem;
        margin: 2rem 0 2rem 0;
        color: white;
        font-weight: 600;
        text-align: center;
    }
    
    .mobile-qualifications ul {
        list-style: none;
        padding: 0;
        margin: 0;
        width: 75%;
        margin: 0 auto;
    }
    
    .mobile-qualifications li {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
        text-align: left;
    }
}

/* ===== DESKTOP HIDE MOBILE MENU ===== */
@media (min-width: 1001px) {
    #banner-menu-container #top_right {
        display: none;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Improved focus styles for better accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #2D5A6B;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(45, 90, 107, 0.1);
}

/* Skip to main content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2D5A6B;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Improved color contrast for better readability */
#content_text p {
    color: #374151; /* Darker gray for better contrast */
}

#content_text h3 {
    color: #1f2937; /* Darker heading color */
}

/* Better link contrast */
a:link, a:visited {
    color: #2563eb; /* More accessible blue */
}

a:hover, a:active {
    color: #1d4ed8; /* Darker blue on hover */
}

/* Submit help specific tweaks */
#submit-help {
    font-family: Helvetica, Trebuchet MS, sans-serif;
    margin-top: 1.5rem;
}
