html, body{
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.layout {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;

}

.main-content {
  flex: 1;
    padding-left: 50px;

}

body {
    background-color: rgba(255, 255, 255, 0.61) !important;
    min-height: 100dvh;
    .sectionHeader {
        width:100%;
        border-bottom: 1px solid #ccc;
        padding-bottom: 4px;
        margin-bottom: 25px;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
    }

    .sectionHeader .title {
        font-family: "gc",'Helvetica Neue',Helvetica,Arial,sans-serif !important;
        font-size: 20px !important;
    }

    .sectionHeader .resultsAmount {
        float: right;
        font-size: 15px;
    }
    .sectionHeader .profileArrow {
        float:right;
        position:relative;
        margin-left:50px;
        transform:translateY(-50%) rotate(135deg);
    }

    /* Place cells */
    .h-left   { grid-area: h-left;   text-align: left;  }
    .h-center { grid-area: h-center; text-align: center;}
    .h-right  { grid-area: h-right;  text-align: right; }

    .c-left   { grid-area: c-left;   text-align: left;  }
    .c-center { grid-area: c-center; text-align: center;}
    .c-right  { grid-area: c-right;  text-align: right; }

    /* Optional: match your original list style */
    .list-unstyled { list-style: none; margin: 0; padding: 0; }
}

.col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-xs-1, .col-xs-10, .col-xs-11, .col-xs-12, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9 {
    position: relative;
    min-height: 1px;
    margin-top: 15px;
}
* {
    box-sizing: border-box;
}

.form-button {
    grid-column: span 2;
    background: #6eceb2; ;
    color: #fff;
    padding: 10px 30px !important;
    font-size: 12px !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top:15px;
    font-size: 14px !important;
}

.sectionHeader{
    padding-top: 2vh;
}
.form-button:hover {
    background-color: #b3b3b3 !important;
    transform: translateY(-2px);
}
div {
    display: block;
    unicode-bidi: isolate;
}
body {
    -webkit-font-smoothing: antialiased;
    font-family: mn, serif;
}
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: 1.5em !important;
    line-height: 1.42857143;
    color: #333;
    background-color: #fff;
}
html {
    font-size: 10px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
html {
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}
:after, :before {
    box-sizing: border-box;
}
:after, :before {
    box-sizing: border-box;
}

.elegant-form button:hover {
    background: #aaa29d;
    transform: translateY(-2px);
}

/*==== Content ====*/
.link-button{  
    color: #6eceb2;           
    transition: color 0.3s ease;
}
.link-button:hover{
    color: #b3b3b3;  
}
.paragraph{
    padding-top: 2vh !important;
}

/*==== Dades personals ====*/
.dades-personals{
    display: flex;
    gap: 3%;
}
.dades-personals div{
    flex:1;
}
select {
    padding: 5px;
    border: 1px solid #CCCCCC;
    border-radius: 7px;
    width: 100%;
    margin-top: 1vh !important;
    cursor: pointer;
    color: #CCCCCC;
}
select:focus, select.is-touched{
    color: black;
}
select:hover {
    background-color: rgba(228, 228, 228, 0.329);
}

/*=== Forms ===*/
input, .elegant-form input[type="checkbox"], textarea{
    padding-top: 3px;
    padding-bottom: 3px;
    border: 1px solid #CCCCCC;
    margin-left: 5px;
    border-radius: 7px;
}
/*=== Formulari - tipologies===*/
.style-nota{
    color: #9c9c9c;
}
/*Grid*/
#sit_data_form_type_form {
    display: grid;
    grid-template-columns: 1fr 2fr; 
    gap: 20px;
    padding-top: 2vh;
}
#sit_data_form_type_form div label{
        white-space: normal;
}
.rehab-types{
    font-weight: 600;
    padding-top: 5dvh;
    padding-bottom: 1dvh;
}
#sit_data_form_type_form > div {
  display: flex;
  align-items: center;
  gap: 8px; 
}

#sit_data_form_type_form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0;
}

#sit_data_form_type_form label {
  flex: 1;
  line-height: 1.3;
}

/*Inputs + Checkbox*/
.form-tipologies input[type="text"] {
    width: 100%;
    padding: 2px;
    height: 20px; 
}

.form-tipologies textarea {
    width: 100%;
    min-height: 45px;
    max-height: 170px;
    height: 25px;   
    resize: vertical;  
    padding: 8px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
.form-tipologies input[type="text"]::placeholder, .form-tipologies textarea::placeholder, textarea::placeholder {
    color: #c4c4c4 !important; 
}
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1c140f;
    justify-self: start;
    cursor: pointer;
}
.form-tipologies div:has(input[type="checkbox"]) > div {
    display: flex;         
    align-items: center; 
}    
input, textarea{
    padding: 5px 10px;
    font-size: 14px;
}
/*=== RGPD ===*/
.row-rgpd{
    border-bottom: 1px solid #bbbbbb;
    padding-bottom: 3px;
}
.check-acceptacio{
    display: flex;
}
.check-acceptacio, .check-acceptacio p{
    margin: 0;
}
.check-acceptacio input{
    margin-right: 10px;
}
.table{
    border-collapse: separate !important;
    border-spacing: 0 10px !important; 
    width: 100%;
}
.table tr{
    padding-bottom: 1vh;
}
label{
    white-space: normal;
}

/*=== Baixa ===*/
.row-baixa{
    padding-bottom: 5vh;
}

/*========================== Responsive ====================================*/
@media only screen and (max-width: 800px){
    body{
        font-size: 14px !important;
    }
    .sectionHeader {
        width: auto !important;
    }
    .sectionHeader .title {
        font-size: 55px !important;
    }
    .content{
        padding-left: 4%;
        padding-right: 4%;
    }
    /*=== Dades personals ===*/
    .dades-personals{
        flex-wrap: wrap;
    }
    .dades-personals div, #inputComarca1, #inputComarca2, #inputComarca3{
        width: 100% !important;
    }
    .dades-personals div {
        flex: initial;
    }
    .dades p{
        display: flex;
        align-items: center;
    }
    .dades p input{
        width: 100%;
    }
    /*=== Inputs ===*/
    input, #inputComarca1, #inputComarca2, #inputComarca3{
        width: auto;
    }
    .form-button{
        font-size: 38px;
        padding-left: 70px;
        padding-right: 70px;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .ps-4 {
        padding-left: 2rem !important;
    }

    /* Ajust dels checkboxes */
    .form-check {
        padding-top: 0.5rem;
    }
}