/* Medicross presentation refinement. Original imagery, colours and Divi ownership retained. */
body.mc-polished{--mc-ink:#43463c;--mc-copy:#57584f;--mc-bronze:#985b36;--mc-line:#e5dfd6;--mc-paper:#fff;--mc-tint:#f8f6f2;--mc-radius:14px}
body.mc-polished #page-container{color:var(--mc-copy)}
body.mc-polished :is(a,button,input,select,textarea):focus-visible{outline:2px solid var(--mc-bronze);outline-offset:4px}
body.mc-polished .et-l--body .et_pb_text{font-size:16px;line-height:1.75}
body.mc-polished .et-l--body .et_pb_text p{padding-bottom:1em}
body.mc-polished .et-l--body .et_pb_text p:last-child{padding-bottom:0}
body.mc-polished .et-l--body :is(h1,h2,h3){letter-spacing:-.018em;line-height:1.12;color:var(--mc-ink)}
body.mc-polished .et-l--body :is(h4,h5,h6){line-height:1.3}
body.mc-polished .et-l--body .et_pb_text ul{line-height:1.8;padding-bottom:1em}
body.mc-polished .et-l--body .et_pb_text li+li{margin-top:5px}
body.mc-polished .et-l--body .et_pb_fullwidth_header h1{line-height:1.06}
body.mc-polished .et_pb_fullwidth_header .et_pb_fullwidth_header_subhead{line-height:1.1}
body.mc-polished .et_pb_fullwidth_header .header-content{padding-bottom:0}
body.mc-polished .et_pb_fullwidth_header p{line-height:1.65}
body.mc-polished #mc-booking{scroll-margin-top:120px}
/* Shared frame and lighter navigation dividers. */
body.mc-polished #main-header{box-shadow:0 1px 0 #4547370d}
body.mc-polished #main-header .nav>li{border-color:var(--mc-line)!important}
body.mc-polished #top-menu a{transition:color .16s ease}
body.mc-polished #top-menu .sub-menu{border-top-color:var(--mc-bronze);border-radius:0 0 10px 10px;box-shadow:0 10px 30px #31281812}
body.mc-polished #top-menu li li a{line-height:1.5;padding-block:10px}
body.mc-polished .et_mobile_menu{border-top-color:var(--mc-bronze);border-radius:0 0 12px 12px;box-shadow:0 12px 24px #31281812}
body.mc-polished .mobile_menu_bar:before{color:var(--mc-bronze)}
/* Consistent, readable controls and buttons. */
body.mc-polished #page-container .et_pb_button{border-radius:6px!important;line-height:1.4!important;font-size:15px!important;font-weight:600!important;letter-spacing:.01em!important;padding:12px 21px!important;min-height:46px;transition:background-color .16s ease,box-shadow .16s ease}
body.mc-polished #page-container :is(.mc-submit,.et_pb_contact_submit,.et_pb_button_one){color:#fff!important;background:var(--mc-bronze)!important;border:1px solid var(--mc-bronze)!important}
body.mc-polished #page-container :is(.mc-submit,.et_pb_contact_submit,.et_pb_button_one):hover{background:#804a2d!important;border-color:#804a2d!important;box-shadow:0 4px 12px #603a2020}
body.mc-polished #page-container :is(.mc-submit,.et_pb_contact_submit,.et_pb_button_one):after{display:none!important}
body.mc-polished .et-l--body .et_pb_image_wrap{border-radius:var(--mc-radius);overflow:hidden}
body.mc-polished .et-l--body .et_pb_gallery_item{border-radius:12px;overflow:hidden}
body.mc-polished.home .et-l--body .et_pb_section_1_tb_body .et_pb_blurb{border:1px solid #ede7df;box-shadow:0 5px 18px #4c352308}
/* A composed booking panel, with quiet section dividers rather than a long unbroken grid. */
body.mc-polished .mc-booking-panel{container-type:inline-size;background:var(--mc-paper);border:1px solid var(--mc-line);border-radius:var(--mc-radius);padding:clamp(22px,3vw,36px);box-shadow:0 8px 28px #49322207;text-align:left}
body.mc-polished .mc-booking-panel .mc-account-info{margin:0 0 27px;padding:0 0 23px;border-bottom:1px solid var(--mc-line);font:400 14px/1.7 'Open Sans',Arial,sans-serif;color:#67685e}
body.mc-polished .mc-booking-panel a{color:#8a512f;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
body.mc-polished .mc-form-section{border:0;min-width:0;padding:0;margin:0 0 27px}
body.mc-polished .mc-form-section+.mc-form-section{border-top:1px solid var(--mc-line);padding-top:23px}
body.mc-polished .mc-form-section legend{float:left;width:100%;padding:0;margin:0 0 17px;font:600 12px/1.5 'Open Sans',Arial,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:var(--mc-bronze)}
body.mc-polished .mc-form-section legend+.mc-form-grid{clear:both}
body.mc-polished .mc-booking-panel .mc-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 18px}
body.mc-polished .mc-booking-panel .mc-form-grid label{display:block;min-width:0;font:600 13px/1.5 'Open Sans',Arial,sans-serif;color:var(--mc-ink)}
body.mc-polished .mc-field-full{grid-column:1/-1}
body.mc-polished #page-container .mc-booking-panel .mc-form-grid :is(input,select,textarea),body.mc-polished #page-container .et_pb_contact :is(input.input,textarea.input,select){appearance:none;-webkit-appearance:none;display:block;width:100%;max-width:100%;height:49px;margin:8px 0 0;padding:12px 14px;border:1px solid #d8d7cf;border-radius:6px;background:#fff;color:var(--mc-ink);font:400 16px/1.4 'Open Sans',Arial,sans-serif;box-sizing:border-box;box-shadow:0 1px 2px #28281803;transition:border-color .15s ease,box-shadow .15s ease}
body.mc-polished #page-container .mc-booking-panel .mc-form-grid textarea{height:auto;min-height:120px;resize:vertical}
body.mc-polished #page-container .mc-booking-panel .mc-form-grid select{padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2364675b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
body.mc-polished #page-container .mc-booking-panel .mc-form-grid :is(input,select,textarea):focus,body.mc-polished #page-container .et_pb_contact :is(input.input,textarea.input,select):focus{border-color:#a36d49;box-shadow:0 0 0 3px #a36d491a;outline:0}
body.mc-polished .mc-form-grid small{display:block;font:400 12px/1.6 'Open Sans',Arial,sans-serif;color:#6a6b61;margin-top:9px}
body.mc-polished .mc-booking-panel .mc-consent{border-top:1px solid var(--mc-line);padding:22px 0 0;margin-top:0;font:400 13px/1.7 'Open Sans',Arial,sans-serif}
body.mc-polished .mc-consent label{display:block;padding-left:30px;position:relative}
body.mc-polished .mc-consent input[type=checkbox]{position:absolute;left:0;top:3px;appearance:auto;width:18px;height:18px;margin:0;accent-color:var(--mc-bronze)}
body.mc-polished .mc-booking-panel .mc-help{font:400 12px/1.65 'Open Sans',Arial,sans-serif;color:#707166;margin:14px 0 20px;padding:0}
body.mc-polished #page-container .mc-submit{display:block;width:100%;text-align:center;margin:0;cursor:pointer}
body.mc-polished .mc-notice{border-radius:8px;background:var(--mc-tint);border-color:#c3a588}
body.mc-polished .mc-applicant-history{margin-top:25px;padding-top:24px;border-color:var(--mc-line)}
body.mc-polished .et_pb_text:has(+ .et_pb_text .mc-booking-panel){margin-bottom:22px!important}
body.mc-polished .et_pb_text:has(+ .et_pb_text .mc-booking-panel) h3{font-size:clamp(30px,3vw,38px)!important;line-height:1.15!important;padding:0}
body.mc-polished .et_pb_text:has(+ .et_pb_text .mc-booking-panel) h3 br{display:none}
/* Bring the existing Divi contact form into the same family. Its handler stays intact. */
body.mc-polished .et_pb_contact_form_container{padding:28px!important;background:#fff;border:1px solid var(--mc-line);border-radius:var(--mc-radius);box-shadow:0 8px 28px #49322207}
body.mc-polished .et_pb_contact .et_pb_contact_form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 18px;margin-left:0}
body.mc-polished .et_pb_contact p.et_pb_contact_field{float:none;width:auto;padding:0;margin:0}
body.mc-polished .et_pb_contact p.et_pb_contact_field:not(.et_pb_contact_field_half){grid-column:1/-1}
body.mc-polished .et_pb_contact .et_pb_contact_form_label{display:block!important;position:static;width:auto;height:auto;clip:auto;overflow:visible;font:600 13px/1.5 'Open Sans',Arial,sans-serif;color:var(--mc-ink)}
body.mc-polished #page-container .et_pb_contact textarea.input{min-height:150px;height:150px;resize:vertical}
body.mc-polished .et_pb_contact :is(input,textarea)::placeholder{color:transparent;font-weight:400}
body.mc-polished .et_pb_contact .et_contact_bottom_container{float:none;grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:flex-end;margin:1px 0 0;gap:15px}
body.mc-polished .et_pb_contact .et_pb_contact_submit{margin:0}
body.mc-polished .et-pb-contact-message:not(:empty){margin-bottom:20px;padding:14px;border-radius:6px;background:var(--mc-tint)}
/* Softer empty-media panels, footer rhythm and consent controls. */
body.mc-polished .mc-embed{border-radius:var(--mc-radius);border-color:var(--mc-line);background:#f5f3ee;overflow:hidden}
body.mc-polished .mc-embed-prompt strong{font-family:'Abhaya Libre',Georgia,serif;font-weight:600;font-size:27px;color:var(--mc-ink)}
body.mc-polished .mc-embed-prompt p{margin-top:10px}
body.mc-polished .et-l--footer .et_pb_text{line-height:1.75}
body.mc-polished .et-l--footer .et_pb_blurb h4{font:400 14px/1.65 'Open Sans',Arial,sans-serif}
body.mc-polished .et-l--footer .et_pb_blurb_content{margin-left:0}
body.mc-polished .mc-cookie-banner,body.mc-polished #mc-cookie-dialog{border-color:var(--mc-line);border-radius:12px;box-shadow:0 8px 32px #32261312}
body.mc-polished .mc-cookie-actions button{border-radius:5px;border-color:#bcb5a9;min-height:42px}
body.mc-polished .mc-cookie-settings{border-radius:5px 5px 0 0;font-size:11px;color:#66685b;padding:5px 10px}
@media(min-width:981px){
 body.mc-polished :is(.et-l--body,.et-l--footer) .et_pb_row,body.mc-polished #main-header .container,body.mc-polished #top-header .container,body.mc-polished .et_pb_fullwidth_header .et_pb_fullwidth_header_container{width:86%;max-width:1120px}
 body.mc-polished .et-l--body .et_pb_row:has(.mc-booking-panel):has(>.et_pb_column:nth-child(2)):not(:has(>.et_pb_column:nth-child(3))){display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:56px}
 body.mc-polished .et-l--body .et_pb_row:has(.mc-booking-panel):has(>.et_pb_column:nth-child(2))>.et_pb_column{width:auto!important;margin:0!important;min-width:0}
 body.mc-polished.page-id-174 .et-l--body .et_pb_row:has(.mc-booking-panel){max-width:900px}
 body.mc-polished .et-l--body .et_pb_section:not(.et_pb_fullwidth_section){padding-top:56px;padding-bottom:56px}
 body.mc-polished.home .et-l--body .et_pb_section_1_tb_body{padding-top:24px;padding-bottom:24px}
 body.mc-polished.home .et-l--body .et_pb_section_2_tb_body .et_pb_column:first-child h6{font-size:22px}
 body.mc-polished.home .et-l--body .et_pb_section_2_tb_body .et_pb_column:first-child p{font-size:25px!important;line-height:1.45!important}
}
@container(max-width:430px){body.mc-polished .mc-booking-panel .mc-form-grid{grid-template-columns:1fr}}
@media(max-width:980px){
 body.mc-polished .et-l--body .et_pb_section:not(.et_pb_fullwidth_section){padding-top:40px;padding-bottom:40px}
 body.mc-polished .et-l--body .et_pb_row{width:86%;padding-block:16px}
 body.mc-polished .et-l--body .et_pb_fullwidth_header h1{font-size:clamp(34px,6.8vw,50px)!important;line-height:1.08!important}
 body.mc-polished .et_pb_text:has(+ .et_pb_text .mc-booking-panel) h3{font-size:33px!important}
 body.mc-polished .et_pb_contact_form_container{padding:24px!important}
}
@media(max-width:600px){
 body.mc-polished .et-l--body .et_pb_row{width:88%}
 body.mc-polished .et-l--body .et_pb_section:not(.et_pb_fullwidth_section){padding-block:28px}
 body.mc-polished .et_pb_fullwidth_header .et_pb_fullwidth_header_container{width:88%}
 body.mc-polished .et_pb_fullwidth_header .header-content{width:100%!important;max-width:100%!important}
 body.mc-polished .et-l--body .et_pb_fullwidth_header h1{font-size:clamp(32px,8.2vw,42px)!important;line-height:1.08!important}
 body.mc-polished.home .et_pb_fullwidth_header .et_pb_fullwidth_header_subhead{font-size:clamp(32px,8.2vw,42px)!important}
 body.mc-polished .mc-booking-panel{padding:23px 19px;border-radius:12px}
 body.mc-polished .mc-booking-panel .mc-form-grid,body.mc-polished .et_pb_contact .et_pb_contact_form{grid-template-columns:1fr;gap:18px}
 body.mc-polished .mc-form-section{margin-bottom:23px}
 body.mc-polished .et_pb_contact_form_container{padding:23px 19px!important}
 body.mc-polished #page-container .et_pb_contact_submit{width:100%;text-align:center}
 body.mc-polished .mc-cookie-banner{padding:17px;font-size:13px}
}
@media(prefers-reduced-motion:reduce){body.mc-polished :is(a,button,input,select,textarea){transition:none!important}}
