/* ==========================================================================
   BASE & RESET
   ========================================================================== */

body {
    font-family: "futura-pt", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 17px;
    line-height: 18px;
}

p {
    margin-bottom: 0;
}

ul li {
    list-style-type: disc;
}

ul, ol {
    padding-left: 1rem;
}

strong {
    font-weight: 600;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3 {
    font-weight: 700;
}

h1 {
    font-size: 20px;
    line-height: 21px;
}

h2 {
    font-size: 18px;
    line-height: 19px;
}

h3 {
    font-size: 17px;
    line-height: 18px;
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */

main {
    margin-bottom: 80px;
}

.top-area-content,
.main {
    max-width: 1920px;
}

.topbar-logo-container {
    width: 60%;
    max-width: 300px;
}

/* ==========================================================================
   DESCRIPTION COMPONENT
   ========================================================================== */

.description-wrapper {
    background-color: #eeece8;
}

.description-container {
    display: flex;
    flex-direction: column;
    font-weight: 400;
    width: 100vw;
}

.description-header {
    font-weight: 700;
}

/* ==========================================================================
   CONFIRMATION COMPONENT
   ========================================================================== */

.confirmation-label {
    font-weight: 700;
    line-height: 25px;
    font-size: 20px;
}

.confirmation-number {
    font-weight: 500;
    font-size: 3rem;
    line-height: 4rem;
    margin-left: -0.15rem;
}

/* ==========================================================================
   SIGNATURE COMPONENT
   ========================================================================== */

#signaturePad {
    width: 100%;
    height: 20vh;
    background-color: #e9e9e9;
    border-radius: 6px;
}

.signature-container {
    padding: 24px 0 0;
    max-width: 400px;
}

.signature-header {
    margin-bottom: 12px;
    font-weight: 700;
}

.signature-header-description {
    font-size: 14px;
}

.signature-name-container {
    padding-top: 6px;
}

.signature-name-description {
    margin-right: 6px;
    font-weight: 600;
}

.signature-name {
    text-decoration: underline;
}

.signature-icon {
    margin-right: 6px;
    font-size: 18px;
}

/* ==========================================================================
   BLOCKS
   ========================================================================== */

/* Button block */
.button-block {
    width: 100%;
    max-width: 450px;
    text-decoration: none;
}

.buttons-block {
    gap: 12px;
}

/* Text block */
.text-block * {
    word-wrap: break-word;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.umbraco-forms-navigation > div {
    display: flex;
    gap: 6px;
}

.umbraco-forms-page .btn,
.button,
body .umbraco-forms-navigation .btn.primary {
    background-color: #c18786;
    color: #000;
    border: 2px solid #c18786;
    border-radius: 2px;
    padding: 6px 20px;
    text-align: center;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    display: block;
    width: 100%;
    text-transform: uppercase;
    flex: 1;
    max-width: 49%;
}

.umbraco-forms-page .btn:disabled,
.button:disabled {
    border: 1px solid #d6b3b2 !important;
}

.btn:focus-visible,
.button:focus-visible {
    outline: RGBA(0,0,0,0) auto 1px;
    outline-color: -webkit-focus-ring-color;
}

.btn.prev,
.btn.next {
    display: inline-block;
}

body .umbraco-forms-navigation .btn.primary {
    font-size: 14px;
    margin-top: 0;
    display: inline-block;
}

.button-image {
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

.button-border-top {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.button-big {
    font-size: 1.8rem;
    padding-top: 16px;
    padding-bottom: 16px;
    max-width: 100%;
    flex: 1;
}

/* ==========================================================================
   UMBRACO FORMS - GENERAL
   ========================================================================== */

.umbraco-forms-form fieldset {
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}

.umbraco-forms-fieldset {
    padding: 0 !important;
}

.umbraco-forms-caption {
    display: none;
}

.umbraco-forms-field.richtext {
    word-wrap: break-word;
}



.umbraco-forms-field-wrapper .text {
    width: 100% !important;
}

.umbraco-forms-fieldset ul {
    padding-left: 1rem;
}

/* Page counter */
.page-counter-div {
    padding-top: 16px;
}

.page-counter-page-text {
    font-weight: 500;
}

/* Column spacing */
.umbraco-forms-container.col-3 {
    padding-left: 5px;
}

.umbraco-forms-container.col-4 {
    padding-right: 5px;
}

.umbraco-forms-container.col-5 {
    padding-left: 5px;
    padding-right: 5px;
}

/* ==========================================================================
   UMBRACO FORMS - INPUT & SELECT
   ========================================================================== */

.umbraco-forms-page input,
.umbraco-forms-page select {
    background-color: #f1e2e1;
}

.umbraco-forms-page select {
    width: 100%;
    text-align: center;
    padding: 5px 0;
    font-size: 14px;
}

/* ==========================================================================
   UMBRACO FORMS - CUSTOM CHECKBOX
   ========================================================================== */

/* Hide the native checkbox */
.umbraco-forms-field-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Style the label */
.umbraco-forms-field-wrapper input[type="checkbox"] ~ label[for] {
    position: relative;
    padding-left: 40px;
    cursor: pointer;
    display: block;
    margin-top: 6px;
}

.umbraco-forms-field.dataconsent {
    margin-top: 30px;
}

/* Draw the checkbox box */
.umbraco-forms-field-wrapper input[type="checkbox"] ~ label[for]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border: 1px solid #333;
    border-radius: 1px;
    background: #f1e2e1;
}

/* Keyboard focus state */
.umbraco-forms-field-wrapper input[type="checkbox"]:focus-visible ~ label[for]::before {
    outline: RGBA(0,0,0,0) auto 1px;
    outline-color: -webkit-focus-ring-color;
}

/* Checked state: show checkmark */
.umbraco-forms-field-wrapper input[type="checkbox"]:checked ~ label[for]::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 4px;
    transform: rotate(56deg);
    width: 6px;
    height: 12px;
    border: solid #000;
    border-width: 0 2px 2px 0;
}

/* ==========================================================================
   UMBRACO FORMS - CUSTOM DROPDOWN
   ========================================================================== */

.dropdown .umbraco-forms-field-wrapper {
    position: relative;
}

.dropdown .umbraco-forms-field-wrapper select {
    width: 100%;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f3dede;
    color: #000 !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 5px 30px 5px 10px;
    line-height: 1.4;
    height: auto;
}

/* Divider line */
.dropdown .umbraco-forms-field-wrapper::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    right: 20px;
    width: 1px;
    background-color: #9c9593;
}

/* Custom dropdown arrow */
.dropdown .umbraco-forms-field-wrapper::after {
    position: absolute;
    top: 50%;
    right: 6px;
    font-size: 16px;
    color: #9c9593;
    pointer-events: none;
    transform: translateY(-50%) scaleX(1.1);
    content: "V";
}

/* ==========================================================================
   GUARDIAN CONTAINER
   ========================================================================== */

.guardian-container {
    /*background-color: #83786e;*/
    /*color: #fff;*/
}

/* ==========================================================================
   CONFIRMATION MODAL
   ========================================================================== */

.confirmation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.confirmation-modal {
    background-color: #fff;
    border-radius: 6px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.confirmation-modal-content {
    padding: 24px 20px;
}

.confirmation-modal-header {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.confirmation-modal-description {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.confirmation-modal-fields {
    background-color: #eeece8;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 20px;
}

.confirmation-modal-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.confirmation-modal-field:last-child {
    margin-bottom: 0;
}

.confirmation-modal-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 2px;
}

.confirmation-modal-value {
    font-size: 16px;
    word-break: break-word;
}

.confirmation-modal-buttons {
    display: flex;
    gap: 5px;
}

.confirmation-modal-btn {
    width: 100%;
    cursor: pointer;
}

.confirmation-modal-btn.decline {
    background-color: transparent;
    color: #333;
    border: 1px solid #ccc;
}

.confirmation-modal-btn.decline:hover {
    background-color: #f5f5f5;
}

/* ==========================================================================
   LANGUAGE BAR
   ========================================================================== */

.language-bar-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.language-bar-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.language-bar-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

.language-bar-name {
    font-size: 14px;
    font-weight: 500;
}

.language-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.language-modal {
    background-color: #fff;
    border-radius: 6px;
    width: 100%;
    max-width: 300px;
    overflow-y: auto;
}

.language-modal-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.language-modal-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
}

.language-modal-option:hover {
    background-color: #eeece8;
    text-decoration: none;
    color: inherit;
}

.language-modal-option.active {
    font-weight: 600;
}

.language-modal-flag {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 2px;
}

.language-modal-name {
    font-size: 16px;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

@media (min-width: 576px) {
    .confirmation-modal-buttons {
        flex-direction: row;
        gap: 12px;
    }

    .confirmation-modal-btn {
        flex: 1;
    }
}

@media (min-width: 1921px) {
    main {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

@media screen and (min-width: 768px) {
    .umbraco-forms-page .btn,
    .button,
    body .umbraco-forms-navigation .btn.primary {
        max-width: 250px;
    }
    
    .button-big {
        max-width: 100%;
    }
}

@media screen and (max-width: 767px) {
    ol {
        padding-left: 1.4rem;
    }
    
    ul {
        padding-left: 1.1rem;
    }
}
