/* contact form page/layout */

.tmForm {
    width: 100%;
}

.tmFormFieldset-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tmForm_pageInfo {
    width: 100%;
}

.tmForm form {
    margin-top: var(--spacing-normal);
    border: none;
    box-shadow: none;
    outline: none; /* Remove default focus outline */
}

.tmForm input[type="text"], 
    input[type="email"], 
    input[type="number"],
    .tmForm select,
    .tmForm textarea {
    border: 1px solid var(--telenor-neutral-tint-400);
    border-radius: 8px;
    padding: 3.5px 10px;
    text-decoration: none;
    background-color: transparent;
    margin-top: var(--spacing-xs);
}

/* .fieldWrapper {
   margin-bottom: var(--spacing-xs);
} */

/* empty div for grid elem alignment - find better solution */
.fieldHelpInfo-empty {
    margin-top: 5px;
    min-height: var(--telenor-sm);
}

.fieldHelpInfo {
    padding-top: 5px;
    display: flex;
}

.fieldHelpText, .fieldErrorValidation {
    width: 293px;
    padding-left: 3px;
    font-family: 'Telenor Evolution Light';
    font-size: var(--telenor-xxs);
    color: var(--telenor-neutral-tint-400);
}

.fieldErrorValidation {
    display: flex;
    color: #C70505;
    padding-top: 3px;
}

/* .fieldErrorValidation::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000000' d='M12 2L15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
    vertical-align: middle;
} */

.fieldElementHelpText {
    margin-bottom: 1.3rem;
}

/* issue hardcode */
.cantfindvouchercodecheckbox {
    padding-top: 38px;
}


.tmForm input[type="text"], 
    input[type="email"], 
    input[type="number"], 
    .tmForm  select {
    height: 40px;
    width: 293px;
}

.tmForm select {
    width: 293px;
    background-image: url('../gfx/down-arrow.png');
    background-repeat: no-repeat;
    background-position: right 15px center; 
    background-size: 25px;
    background-color: transparent;
}

.tmForm input::placeholder, textarea::placeholder, select::placeholder, .tmForm-placeholder {
    font-family: 'Telenor Evolution Light';
    font-size: var(--telenor-sm);
    color: var(--telenor-neutral-shade-600);
    padding-left: 5px;
}

.tmForm textarea::placeholder {
    padding-top: 4px;
    padding-left: 4px;
}

.tmForm input[type="submit"] {
    width: 104px;
    height: 38px;
    padding-right: 15px;
    font-size: var(--telenor-sm);
    font-family: 'Telenor Evolution UI';
    background-color: var(--telenor-mid);
    color: white;
    border: none;
    border-radius: 3px;
    margin-top: var(--spacing-normal);

    background-image: url('../gfx/right-arrow.png');
    background-repeat: no-repeat;
    background-position: right 18px center; 
    background-size: 7%;
}

.tmForm .formLabel {
    color: var(--telenor-neutral-shade-700);
    font-size: var(--telenor-sm);
    font-family:'Telenor Evolution UI';
    line-height: var(--leading-label);
    margin-bottom: 3px;
}

.radioLabel, .tmForm .checkBoxLabel, .tmForm .consentLabel  {
    font-family: 'Telenor Evolution Light';
    font-size: var(--telenor-sm);
    color: var(--telenor-dark);
    line-height: 1.4rem;
}

.tmForm fieldset {
    width: 100%;
    display: flex;
    border: none;
    padding-top: var(--spacing-xs) 0;
}

.tmForm_content {
    width: 625px;
    display: flex;
    /* background-color: yellow; */
    flex-direction: column;
}

.tmForm textarea {
    min-height: 177px;
    height: 177px;
    width: 625px;
    max-width: 625px;
    margin-bottom: 0px;
} 

.consentInput {
    padding-top: var(--spacing-sm);
}

.tmFormFieldsetGrid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-between;
    gap: var(--telenor-normal);
}

/* .gridElement-withHelpText {
    padding-bottom: 30px;
}
 */
/* .tmFormFieldset-elementGrid, .tmFormFieldset-element {
    margin-top: var(--spacing-normal);
}
 */
.tmForm_pageTitle {
    padding-bottom: var(--spacing-normal);
}

.tmForm_formTitle {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-sm); 
}


.checkBoxContainer {
    display: flex;
}

input[type="checkbox"]:checked::before {
    display: flex;
    content: url('../gfx/checkMark.svg');
    color: white;
    position: absolute;
    left: 2px;
    top: 5px;
}

input[type="checkbox"]:checked {
    accent-color: var(--telenor-mid); /* Still applies color */
    background-color: var(--telenor-mid);
}

.tmForm input[type="checkbox"] {
    appearance: none;
    min-width: 20px;
    height: 20px;
    margin-top: 1px;
    margin-right: var(--spacing-sm);
    border-radius: 1.5px;
    border: none;
    box-shadow: 0 0 0 1.8px var(--telenor-mid);
    transition: .1s;
    position: relative;
    cursor: pointer;
}

.checkBoxLabel {
    display: inline-block;
    white-space: wrap;
    width: 100%;
}

.radiobuttonlist {
    display: flex;
}

.radioLabel {
    padding-left: var(--spacing-xs);
    white-space: nowrap;
}

.radioElement {
    display: flex;
    align-items: center;
    margin-right: var(--spacing-sm);
    margin-top: var(--spacing-xs);   
}

.tmForm .radioButtonElement {
    margin-right: var(--spacing-normal);
}

.tmForm input[type="radio"]:checked {
    background-color: var(--telenor-mid);
    border: 2px solid white; 
    box-shadow: 0 0 0 2px var(--telenor-mid);
}

.tmForm input[type="radio"] {
    min-width: 20px;
    min-height: 20px;
    width: 20px;
    height: 20px;
    background-color: initial;
    cursor: default;
    appearance: none;
    box-sizing: border-box;
    box-shadow: 0 0 0 2px var(--telenor-mid);
    border-radius: 50%;
}

.umbraco-forms-indicator {
    color: var(--telenor-neutral-shade-700)
}

/* response page */
.responsePage {
    display: flex;
    flex-direction: column;
}

.responsePage-title {
    display: flex;
    align-items: center;
    padding-bottom: var(--spacing-normal);
}

.responsePage-title SVG {
    margin-left: 5px;
}

.responsePage-info {
    padding-top: var(--spacing-normal);
}

.responsePage-links {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Telenor Evolution UI';
    margin-top: var(--spacing-normal);
}

.responsePage-link {
    border: none;
    margin-top: var(--spacing-sm);
    margin-bottom: 5px;
    text-decoration: none;
    background-color: transparent;
    font-size: var(--telenor-base);
    height: 35px;
    width: fit-content;
    text-align: left;
}

.responsePage-link a {
    text-decoration: none;
    padding: 10px var(--telenor-sm);
    border-radius: 3px;
}

.responsePage-linkHome {
    display: flex;
    align-items: center;
    background-color: #DCE6FF;
    color: var(--telenor-mid);
}

.responsePage-linkDefault {
    display: flex;
    align-items: center;
    color: white;
    background-color: var(--telenor-mid);
}

.responsePage-linkSVG {
    margin-left: var(--spacing-xs);
}

/* responsive */

@media only screen and (min-width: 1400px) {

    .tmForm_pageInfo {
        width: 66%;
    }
}

@media only screen and (max-width: 1400px) {
    .tmForm_pageInfo {
        width: 80%;
    }
}

@media only screen and (max-width: 1200px) {

    .tmForm_pageInfo {
        width: 100%;
    }
}

@media only screen and (max-width: 740px) {
    .tmFormFieldsetGrid {
        display: flex;
        flex-direction: column;
    }

    .tmForm_content {
        width: 500px;
    }    

    .tmForm textarea {
        width: 500px;
    } 
    
    .radioElement {
        margin-right: var(--spacing-normal);
    }

    .checkBoxContainer {
        margin-top: 0px;
        margin-bottom: 0px;
        
        /* align-items: center; */
    }
}

@media only screen and (max-width: 600px) {
    .tmForm textarea {
        width: 450;
    }  
}


@media only screen and (max-width: 550px) {

    .tmForm_content {
        width: 100%;
        display: flex;
        flex-direction: column;
    }    

    .tmForm textarea {
        width: 400px;
    }  

/*     .checkBoxLabel {
        width: 100%;
    } */
}

@media only screen and (max-width: 500px) {
    .tmForm textarea {
        width: 350px;
    }  
}

@media only screen and (max-width: 400px) {
    .tmForm textarea {
        width: 293px;
    }  
}

