/******************************************************************************
*                       T R I N I X   M E D I A 
*       F R O N T E N D    F R A M E W O R K    L I B R A R Y
*               F O R M S   M O D U L E    S T Y L E S
*                      Development Version 0.0.1
*                        (c) Trinix Media 2023
*
* Created by: Brandon Reilly on:    2023-09-10 @ 3:40AM
*   Updated by Brandon Reilly on:   2023-09-15 @7:37AM            
* 
******************************************************************************/


.edit-listing-container {
    margin: .25rem auto;
    background: rgb(125, 125, 125);
    padding: 0.25rem;
    border-radius: .35rem;
    width: 98vw;
}

/*body {
    width: 100%;
    height: 100%;
    background: rgba(244, 244, 244, 1)
}*/

.TS.L-form-container {
    width: 50%;
    border: 1px solid rgba(30, 40, 50, .05);
    box-shadow: 2px 2px rgba(30, 40, 50, .8);
}


.TS.C-form {
    max-width: 60rem;
    height: auto;
    width: calc(100% - 0rem);
    background: rgb(175, 175, 180);
    border-radius: 0.25rem;
    border: .25rem rgba(6, 6, 6, .85);
    margin: 0 auto;
    /* padding: .01rem; */
    padding: 0;
    display: grid;
}


.TS.C-form .hidden {
    display: none !important;
}

    
.TS.C-form h1 {
    text-align: center;
    font-size: 2rem;
    font-family: Helvetica;
    color: rgba(130, 140, 150, 1);
    text-shadow: 1px 2px rgba(222, 220, 248, 1);
}

.ts-c-field {
    display: block;
    width: 75%;
    margin: auto;
    margin-bottom: 1rem;
}

.TS.C-form__field-group {
    position: relative;
    margin: .25rem auto;
    width: calc(100% - 0.75rem);
    display: block;
    overflow: hidden;
    padding: .5rem;
    padding: 0 0 .5rem;
}


.TS.C-form__field-group p {
    
}

.TS.C-form__field-group.bordered {
    position: relative;
    border: .075125rem inset rgba(13, 13, 13, .5);
    border: .1rem solid rgb(6, 6, 6);
    border-radius: .35rem;
    padding: 0;
    margin: .125rem auto;
    /* box-sizing: border-box; */
/*     box-shadow: 0.035rem 0.05rem 0.075rem rgba(13, 13, 13, .5); */
}

.TS.C-form__field-group.bordered.collapsed {
    height: 1.25rem;
    top: 0px;
    padding-bottom: 0;
    padding-top: 0;
/*     padding-top: 16px; */
}


.ts-c-field label {
    /* text-align: right; */
    padding-left: 15%;
    color: rgba(130, 140, 150, 1);
    text-shadow: .25px .25px rgba(222, 220, 248, .8);
    font-family: Helvetica;
    display: block;
    font-size: 1rem;
}

.ts-c-field input,
.TS.C-form__field-row textarea,
.TS.C-form__field-row select {
    width: 75%;
    margin-left: 15%;
    margin-right:15%;
    border: transparent;
    background: rgba(244, 244, 244, 1);
    line-height: 1.5rem !important;
    box-shadow: inset 3px 3px 5px  rgba(60, 80, 100, 0.9);
    
}

.TS.C-form__field-row {
    margin: 0.4rem auto .075rem;
    padding: .5rem .125rem .125rem .125rem;
    display: inline-grid;
    width: calc(100% - .25rem);
    grid-template-columns: 50% 50%;
}


.ts-c-field input:hover {
    border: 1px solid rgb(15, 20, 250);
}

.ts-c-field select:hover {
    border: 1px solid rgb(15, 20, 250);
}

.ts-c-field textarea:hover {
    border: 1px solid rgb(15, 20, 250);
}

.ts-c-field option[value=low]{
    background: rgb(28, 0, 128);
    color: white;
}

.ts-c-field option[value=medium] {
    background: rgb(0, 127, 0);
    color: white;
}

.ts-c-field option[value=high] {
    background: rgb(255, 0, 0);
    color: white;
}

/************************************************************************************************************** 
*                                              F O R M    B U T T O N S
***************************************************************************************************************/

.TM.C-button--blue {
    margin: auto;
    width: 10rem;
    height: 2rem;
    line-height: 1;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .15rem;
    font-family: Prompt;
    font-family: Gruppo;
    text-shadow: 0.1rem 0.1rem 0.05rem rgb(6 6 6 / 95%);
    border-radius: .35rem;
    box-shadow: 0.075rem 0.075rem 0.1rem rgb(13 13 13 / 95%);
    color: rgb(225, 235, 245);
    background: rgba(26, 150, 225, .95);
}



.TS.C-form .C-button {
    margin: auto;
    width: 45%;
    height: 2rem;
    line-height: 1.5;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: .15rem;
    font-family: Prompt;
    text-shadow: .1rem .1rem .05rem rgba(6, 6, 6, .95);
    
    border: radius: .35rem;
    box-shadow: .075rem .075rem .1rem rgba(13, 13, 13, .95);
    
    color: rgb(225, 235, 245);
    background: rgba(200, 200, 225, .95);
}

.TS.C-form .C-button:disabled {
    border: none;
    box-shadow: none;
    background: rgba(100, 100, 100, .95);
    color: rgb(200, 200, 215);
    
}

.TS.C-form .C-button:not(:disabled):active {
    border-top: .075rem solid rgb(50, 50, 75);
    border-right: .075rem solid rgb(75, 75, 95);
    border-bottom: .075rem solid rgb(150, 150, 175);
    border-left: .075rem solid rgb(75, 75, 95);
    box-shadow: -.0125rem -.0125rem .195rem rgba(13, 13, 13, .75);
}


.TS.C-form .C-button:not(:disabled) {
    border-top: .075rem solid rgb(225, 225, 250);
    border-right: .075rem solid rgb(200, 200, 225);
    border-bottom: .075rem solid rgb(200, 200, 225);
    border-left: .075rem solid rgb(200, 200, 225);

}

/* .TS.C-form .C-button[data-inputs-pass-vallidation="true"], */
.TS.C-form[data-all-inputs-pass-validity="true"] .C-button {
    background: rgb(0, 150, 25);
    color: rgb(235, 245, 255);
    font-size: 1.150rem;
  
}

/* .TS.C-form .C-button[data-inputs-pass-vallidation="false"] */
.TS.C-form[data-all-inputs-pass-validity="false"] .C-button {
    background: rgba(175, 0, 0, .95);
    color: rgb(200, 200, 200);
    border: none;
    text-shadow: none;
    box-shadow: none;
    font-size: 1.150rem;
  
}

/* .TS.C-form .C-button[data-inputs-pass-vallidation="true"]:not(:disabled):hover */
.TS.C-form[data-all-inputs-pass-validity="true"] .C-button:not(:disabled):hover{
    transform: scale(1.05);
    box-shadow: .125rem .125rem .1rem rgba(13, 13, 13, .95);

}

.TS.C-button[data-required-input-complete="false"] {
    background: rgba(150, 25, 25, .95);
    color: rgb(175, 175, 175);
    border: none;
    box-shadow: unset;
}

.TS.C-button[data-required-input-complete="true"] {
    background: rgb(25, 175, 25);
    color: rgb(250, 250, 250);
    font-weight: 700;
    text-shadow: 0.075rem 0.075rem 0.15rem rgb(13 13 13);
    border: .075rem outset rgba(64, 64, 64, .666);
    box-shadow: 0.075rem 0.075rem 0.125rem rgb(64 64 64 / 90%);
}

.TS.C-form small.form-input-validation-message[data-validation-state]:not([data-validation-state='valid'])::after {
  color: red;
  content: "\26A0";
  font-weight: 700;
  font-size: 1.25rem;
}

.TS.C-form small.form-input-validation-message[data-validation-state]:not([data-validation-state='valid'])::before {
  color: red;
  content: "\26A0";
  font-weight: 700;
  font-size: 1.25rem;
}

.TS.C-form small.form-input-validation-message[data-validation-state] {
    display: block;
    position: absolute;
    width: 20rem;
    height: 1.75rem;
    z-index: 1000;
    background: black;
    color: red;
    content: "\26A0";
}



.TS.C-form small.form-input-validation-message {
    display: none;
    position: absolute;
    padding: .35rem .25rem;
    font-family: Tomorrow;
    font-size: 60%;
    letter-spacing: -0.015rem;
    line-height: 0.45rem;
    margin: auto;
    height: 0.5rem;
    vertical-align: top;
    font-weight: 400;
}


.TS.C-form small.form-input-validation-message.validation-success {
    display: inline;
    z-index: 1;
    color: rgb(0, 175, 25);
    background: none;
    /* left: 87.5%; */
    right: 0.25rem;
    height: 1.5rem;
    vertical-align: top;
    top: 0rem;
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1rem;
    text-shadow: 0.1rem 0.125rem 0.075rem rgb(6 6 6 / 66%);
}


.TS.C-form small.form-input-validation-message.validation-error {
    background: rgba(200, 200, 200, .666);
    z-index: 2;
    border-radius: .25rem;
    border: .125rem outset rgb(235, 245, 255);
    width: calc(97.5% - 4rem);
    left: 4rem;
    filter: drop-shadow(.125rem .125rem .15rem rgba(6, 6, 6, .75));
    top: -1rem;
    display: inline-block;
    color: rgb(150, 0, 0);
    background: rgba(150, 0, 0, .5);
    color: white;
}

.TS.C-form .form-input-validation-message strong {
    font-size: 125%;
    font-weight: 900;
    padding: .125rem 0.25rem 0rem .125rem;
    vertical-align: bottom;
    line-height: 0.5;
}



.TS.C-form__field-group p {
    text-align: center;
    font-family: system-ui;
    font-size: 1.225rem;
    font-weight: 600;
    margin: .25rem auto;
    padding: 0;
}

.TS.C-form__field-row {
    margin: 0.4rem auto .075rem;
    padding: .5rem .125rem .125rem .125rem;
    display: inline-grid;
    width: calc(100% - .25rem);
    grid-template-columns: 50% 50%;
}


.TS.C-form__field-row.three-fields {
    grid-template-columns: 33% 33% 33%;
    display: inline-grid;
}

.TS.C-form__field-row.four-fields {
    grid-template-columns: 25% 25% 25% 25%;
    display: inline-grid;
}


/*
.TS.C-form__field-row input[type="text"][name="listing-title"] {
    width: 75%;
    margin:  .125rem .25rem;
    line-height: 1.75;
}*/


.TS.C-form__field-row input[type="text"]{
    width: 20rem;
/*     margin: .125rem .25rem; */
/*     line-height: 1.75; */
}

.TS.C-form__field-row input[type="number"]{
    width: 10rem;
/*     margin: .125rem .25rem; */
/*     line-height: 1.75; */
}


.TS.C-form__field-row select {
    max-width: 20rem;
    width: auto;
    font-size: 0.95rem;
    height: 1.5rem;
    margin: .125rem .25rem;
    padding: .075rem .125rem 0;
    vertical-align: middle !important;
}



.TS.C-form__field-row label {
    width: 100%;
    max-width: 10rem;
    white-space: nowrap;
    display: inline-block;
    font-size: 1rem;
}

.TS.C-form__field-row label.above-input {
    position: absolute;
    display: inline-block;
    overflow: hidden;
    
    max-width: 8.5rem;
    width: auto;
    height: 1.25rem;
    line-height: 1;
    
    margin: -0.8rem 0 0 .5rem;
   
    font-size: 0.75rem;
    /* white-space: nowrap; */
    
}

.TS.C-form__field-row span {
    position: relative;
}

.TS.C-form__field-row span.full-width {
    grid-column-end: span 2;
}

.TS.C-form__field-group.U-left-aligned.bordered {
    transition: .5s all ease-in-out;
    transition: .5s all cubic-bezier(.25,1.35,.5,.95);
}



.TS.C-form__field-row input.half-width,
.TS.C-form__field-row textarea.half-width  {
    width: calc(50% - 1rem);
    margin: .125rem .25rem;
    line-height: 1.5;
    grid-column-end: span 1;
    
}

.TS.C-form__field-row input[type="text"].half-width,
.TS.C-form__field-row input[type="email"].half-width,
.TS.C-form__field-row input[type="tel"].half-width,
.TS.C-form__field-row input[type="number"].half-width,
.TS.C-form__field-row input[type="password"].half-width,
.TS.C-form__field-row input[type="text"].full-width,
.TS.C-form__field-row input[type="email"].full-width,
.TS.C-form__field-row input[type="tel"].full-width,
.TS.C-form__field-row input[type="number"].full-width,
.TS.C-form__field-row input[type="password"].full-width,
.TS.C-form__field-row textarea.full-width {
    width: calc(100% - 1rem);
    margin: .125rem .25rem;
    line-height: 1.5;
    grid-column-end: span 2;
    min-width: 96%;
    max-width: 98%;
    max-height: 8rem;
    min-height: 1.5rem;
}



/* .TS.C-form input:invalid { */
.TS.C-form input[data-validation-state="failed"] {
/*     border-bottom: .125rem solid rgba(225, 0, 0, .95); */
    border-radius: .35rem;
    border: .2rem solid rgba(225, 0, 0, .95);
    filter: drop-shadow(.1rem .1rem .15rem rgba(245, 0, 0, .9));
}

.TS.C-form input:valid {
    border-radius: .35rem;
    border: .125rem solid rgba(0, 175, 0, .95);
}


.TS.C-form input {
    outline: none;
}

.TS.C-form input:active,
.TS.C-form input:focus
 {
    border-radius: .35rem;
    border: .2rem solid rgba(0, 150, 225, .95) !important;
    filter: drop-shadow(.1rem .1rem .15rem rgba(0, 175, 250, .95));

}





/*
.TS .C-form__field-group label.half-width {
    max-width: 4.75rem;
    width: auto;
    padding: 0;
    margin-left: .25rem !important;
    margin-right: -.125rem !important;
}




.TS .C-form__field-group input.half-width {
    max-width: 4rem;
    width: auto;
    padding: 0;
    margin-left: -.125rem !important;
    margin-right: .25rem !important;

}*/

.TS.C-form__field-group.U-center-aligned.bordered {
    text-align: center;
}

.TS.C-form__field-group button.collapse-form-container {
    position: absolute;
    top: -.125rem;
    right: -.125rem;
    border-top: .125rem solid rgba(50, 150, 50, .95);
    border-right: .15rem solid rgba(50, 150, 50, .95);
    border-radius: .25rem;
    height: 1.25rem;
}

span.collapse-form-container {
    position: relative;
    padding: 0;
    margin: 0;
    border-radius: .25rem;
    height: 1.25rem;
    width: calc(100% - 0.075rem);
    background: rgba(10, 25, 100, .75);
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    display: inline-block;
}



.TS.C-form__field-group span.collapse-form-container p {
    margin: 0 auto 0 3rem;
    height: 1rem;
    padding: 0;
    font-size: 85%;
    font-weight: 400;
    font-family: Tomorrow;
    color: rgb(225, 225, 250);
    display: inline-block;
    vertical-align: top;
    line-height: 1.2;
    width: calc(100% - 6rem);
}

.TS.C-form__field-group span.collapse-form-container button {
    position: absolute;
    display: inline-block;
    margin: 0;
    margin-left: 25rem;
    width: 5rem;
    /* top: -.125rem; */
    right: -.125rem;
    border-top: .125rem solid rgba(50, 150, 50, .95);
    border-right: .15rem solid rgba(50, 150, 50, .95);
    border-radius: .25rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0;
    border-bottom: none;
    border-left: none;
    height: 100%;
    max-height: 1.25rem;
}

div#form-background-container-id {
    position: relative;
    display: block;
    height: calc(100vh - 15rem);
    width: calc(100vw - .75rem);
    margin: auto;
}


#form-background-container-id {
    display: block;
    height: 100%;
    max-height: calc(100% - 5rem);
    max-width: 100vw;
    width: 100%;
    padding: 1.25rem 0;
    position: relative;
    margin: 0;
    /* overflow-y: auto; */
    /* overflow-x: hidden; */
    /* margin: 0 auto; */
    /* text-align: center; */
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    flex-direction: column;
    background: var(--TS_L-header__background--color);
}

/*****************************************************************************
 *                  T A B B E D    F O R M    S T Y L E S
 *****************************************************************************/
#form-background-container-id .form-tabbed {
    display: flex;
    position: absolute;
    /* width: 66vw; */
    /* height: 66vh; */
    /* top: 50%; */
    /* left: 50%; */
    width: calc(100% - 1.5rem);
    overflow: unset;
    flex-direction: column;
    padding: .25rem;
    margin: auto;
    background: rgba(150, 150, 150, .95);
    /* transform: translate3d(-50%, -50%, 0); */
}


.form-tabs-container {

    display: inline-flex;
    height: 1.75rem;
    width: 100%;
    z-index: 1;
    position: absolute;
    max-width: 50rem;
    left: 50%;
    margin: auto;
    padding: .25rem 0 0 1rem;
    transform: translate3d(-50%, 0, 0);
    /* background: rgba(130, 130, 130, .666); */
}



/*div#form-container-id {
    display: inline-flex;
    height: 90%;
    width: 100%;
    position: relative;
    max-width:  85vw;
    top: 0;
    left: 50%;
    margin: auto;
    padding: .25rem 0 0 1rem;
    transform: translate3d(-50%, 0, 0);
    background: rgba(130, 130, 130, .666);
    flex-direction: column;
}*/

div#tabbed-form-container-id {
    max-width: 50rem;
    height: 56vh;
    left: 50%;
    top: 3.25rem;
    width: calc(100% - 0rem);
    background: none; /*rgba(150, 150, 150, .85);*/
    border-radius: 0.25rem;
    border: .25rem rgba(6, 6, 6, .85);
    margin: 0 auto;
    padding: .25rem 0 0 1rem;
    /* padding: 0; */
    display: grid;
    position: absolute;
    transform: translate3d(-50%, 0, 0);
    
}


/*.form-field-container {
    display: flex;
    height: 76vh;
    max-height: 76vh;
    position: relative;
    overflow-y: auto;
}*/

  
.form-tabbed.form-tabbed-focused {
/*     z-index: 1; */
    opacity: 1;
    transition: opacity 1s ease-in-out;
}
  
.form-tabbed.form-tabbed-hidden {
/*     z-index: -1; */
    opacity: 0;
    z-index: -1;
    transition: opacity 1s ease-in-out;
}


button.form-tab-button {
    
  
    border-radius: .335rem;
    margin-right: .125rem;
    /* margin-left: .25rem; */
    border: .075rem solid rgba(6, 6, 6, .666);
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom: none;
    z-index: -1;
    color: rgb(48, 48, 48);
    background: rgba(180, 180, 180, .5);
    
}

button.form-tab-button.tab-focused {
    
    background: rgba(0, 175, 250, .666);
    background: rgba(150, 150, 150,1);
    border: .1rem solid rgb(6, 6, 6);
    border-bottom: none;
    color: rgb(0, 50, 0);
    font-weight: 700;
    transform: scale(1.1);
        
}




@media (max-width:768px) {
    
/*    .TS.C-form__field-row input[type="text"] {
        width: 18rem;
        margin: .125rem .25rem;
        line-height: 1.75;
    }*/
    
    .TS.C-form__field-row {
        margin: .35rem auto .25rem;
        padding: .5rem .125rem .25rem;
    }


    .TS.C-form__field-row label {
        max-width: 8.5rem;
        font-size: 0.9rem;
    }

    .TS.C-form__field-row label.full-width {
        width: 100%;
    
    
}
