/* ============================================================================
          Form Card Component
============================================================================ */
      .form-card {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
        width: 100%;
        max-width: 28rem;
        padding: 2rem;
        margin: 0 auto;
        background-color: rgba(255, 255, 255, 1);
        border: 1px solid rgba(43, 45, 51, 0.10);
        border-radius: 0.75rem;
        box-shadow:
          0 0 1px 0 rgba(43, 45, 51, 0.10),
          0 -2px 10px 0 rgba(43, 45, 51, 0.10),
          0 1px 3px 0 rgba(43, 45, 51, 0.15);
      }
      .form-title {
        font-size: 1.125rem; /* Apply GDS – after all templates will be refactored */
        font-weight: 600;
        color: rgba(0, 0, 0, 0.8);
        margin: 0;
      }
      .form-section-title {
        font-size: 1rem; /* Apply GDS – after all templates will be refactored */
        font-weight: 600;
        color: rgba(0, 0, 0, 0.8);
        margin: 0;
      }
      .form-card p,
      .form-card p + p {
        font-size: 1rem; /* Apply GDS – after all templates will be refactored */
        font-style: normal;
        font-weight: 400;
        line-height: 1.5rem;
        letter-spacing: 0;
        color: rgba(43, 45, 51, 1);
        margin: 0;
      }
/* ========================================================================= */

/* ============================================================================
          Form Filed Wrapper
============================================================================ */
      .form-field {
        display: block;
        box-sizing: border-box;
        position: relative;
        margin: 0;
        padding: 0;
      }
      .form-label {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        font-size: 1rem;
        font-weight: 600;
        color: rgba(0, 0, 0, 0.8);
      }
/* ========================================================================= */

/* ============================================================================
          Form Input Component
============================================================================ */
      .form-input {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        width: 100%;
        box-sizing: border-box;
        padding: 0.75rem;
        font-size: 1rem;
        font-style: normal;
        font-weight: 500;
        line-height: 1.5rem;
        letter-spacing: 0;
        border-radius: 0.5rem;
        border: 1px solid rgba(43, 45, 51, 0.3);
        background-color: rgba(255, 255, 255, 1);
        color: rgba(43, 45, 51, 1);
      }
      .form-input:hover:not(:focus),
      .form-input:hover,
      .form-input:focus,
      .form-input:focus-visible {
        outline: 2px solid rgba(43, 45, 51, 1);
        outline-offset: -1px;
        color: #2B2D33;
        box-shadow: none;
      }
      .form-input:not(:placeholder-shown):not(:focus) {
        border: 1px solid rgba(43, 45, 51, 1);
      }
      .form-input[readonly] {
        background-color: rgba(43, 45, 51, 0.05);
        cursor: not-allowed;
        
      }
      .form-input--with-icon {
        padding-right: 3rem;
      }
      .input-icon {
        position: absolute;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        right: 0.75rem;
        top: 49%;
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 0.5rem;
        background: none;
        cursor: pointer;
        width: 2rem;
        height: 2rem;
        box-shadow: none;
      }
      .input-icon::before{
        content: "";
        width: 1.5rem;
        height: 1.5rem;
        background-color: rgba(43, 45, 51, 1);
        -webkit-mask-image: url("/assets/images/edit.svg");
        mask-image: url("/assets/images/edit.svg");
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
      }
      .input-icon:hover {
        background-color: rgba(43, 45, 51, 0.10);
      }
      .input-icon:focus-visible {
        outline: 2px solid rgba(43, 45, 51, 0.7);
        outline-offset: -1px;
      }
      .input-icon:focus:not(:focus-visible) {
        outline: none;
        border: none;
      }
      .input-icon:active {
        background-color: rgba(43, 45, 51, 0.16);
      }
      .form-label:hover .form-input {
        outline: 2px solid rgba(43, 45, 51, 1);
        outline-offset: -1px;
      }
/* ========================================================================= */

/* ============================================================================
          Form Button Component
============================================================================ */
      .btn {
        all: unset;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        max-width: 100%;
        padding: 0.75rem;
        text-align: center;
        font-size: 1rem;
        font-weight: 500;
        font-style: normal;
        line-height: 1.5rem;
        letter-spacing: 0;
        color: rgba(43, 45, 51, 1);
        background-color: rgba(254, 230, 0, 1);
        border-radius: 0.5rem;
        border: 1.5px solid rgba(43, 45, 51, 0.40);
        cursor: pointer;
      }
      a.btn {
        color: rgba(43, 45, 51, 1) !important;
        text-decoration: none !important;
      }
      .btn:hover,
      .btn:focus {
        background-color: rgba(255, 212, 3, 1);
      }
      .btn:focus-visible {
        background-color: rgba(255, 212, 3, 1);
        outline: 2px solid rgba(43, 45, 51, 0.7);
        outline-offset: 2px;
      }
      .btn:focus:not(:focus-visible) {
        outline: none;
      }
      .btn:disabled {
        background-color: rgba(43, 45, 51, 0.05);
        color: rgba(43, 45, 51, 0.40);
        border: solid transparent;
        cursor: not-allowed;
        pointer-events: none;
      }
      .btn-outlined {
        background-color: rgba(255, 255, 255, 1);
        border: 1.5px solid rgba(43, 45, 51, 0.5);
        color: rgba(43, 45, 51, 1);
      }
      .btn-outlined:hover,
      .btn-outlined:focus,
      .btn-outlined:focus-visible {
        background-color: rgba(43, 45, 51, 0.1);
      }
      .btn-bar {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        flex-wrap: nowrap;
        gap: 1rem;
        margin-top: 1.5rem;
      }
/* ========================================================================= */

/* ============================================================================
          Form Notification Message Component
============================================================================ */
      .form-notification {
        display: flex;
        flex-direction: row;
        padding: 0.75rem;
        align-items: flex-start;
        align-self: stretch;
        gap: 0.75rem;
        border-radius: 0.25rem;
        border-left: 4px solid;
        border-top: 1px solid;
        border-right: 1px solid;
        border-bottom: 1px solid;
      }
      .form-notification-icon {
        width: 1.5rem;
        height: 1.5rem;
        margin-top: 0.125rem;
        flex-shrink: 0;
      }
      .form-notification p,
      .form-notification p+p {
        margin: 0;
        padding: 0;
      }
      .form-notification-content {
        flex: 1;
        min-width: 0;
        color: rgba(43, 45, 51, 1);
        font-size: 1rem;
        font-style: normal;
        font-weight: 400;
        line-height: 1.5rem;
        letter-spacing: 0;
      }
      .form-notification ul {
        margin: 0.5rem 0 0 0;
        padding-left: 1.25rem;
        list-style-position: outside;
      }

      .form-notification li {
        margin-bottom: 0.5rem;
      }

      .form-notification li:last-child {
        margin-bottom: 0;
      }
      .form-notification-error {
        background-color: rgba(255, 238, 235, 1);
        border-color: rgba(183, 0, 23, 1);
      }
      .form-notification-error .form-notification-icon {
        background-color: rgba(183, 0, 23, 1);
        mask-image: url("/assets/images/cancel.svg");
        -webkit-mask-image: url("/assets/images/cancel.svg");
      }
/* ========================================================================= */

/* ============================================================================
          Form Accordion Component
============================================================================ */
      .form-card > details + details {
        margin-top: calc(0.5rem - 1.5rem);
      }
      details {
        border-bottom: 1px solid rgba(43, 45, 51, 0.3);
        padding-bottom: 0.5rem;
        position: relative;
      }
      details > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        list-style: none;
        cursor: pointer;
        padding: 0.75rem;
        margin-inline: -0.75rem;
        border-radius: 0.5rem;
        font-size: 1rem;
        font-weight: 500;
        color: rgba(43, 45, 51, 1);
        position: relative;
      }
      details > summary::marker,
      details > summary::-webkit-details-marker {
        content: none;
      }
      details > summary::after {
        content: "";
        width: 1.5rem;
        height: 1.5rem;
        background-color: rgba(43, 45, 51, 1);
        -webkit-mask-image: url("/assets/images/select-hide.svg");
        mask-image: url("/assets/images/select-hide.svg");
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        display: inline-block;
        transition: transform 0.2s ease;
      }
      details[open] > summary::after {
        -webkit-mask-image: url("/assets/images/select-open-down.svg");
        mask-image: url("/assets/images/select-open-down.svg");
      }
      details > summary:hover {
        background-color: rgba(43, 45, 51, 0.10);
        box-sizing: content-box;
        padding: 0.75rem;
      }
      details > summary:focus-visible {
        outline: 2px solid rgba(43, 45, 51, 0.7);
        outline-offset: -1px;
      }
      details > summary:focus:not(:focus-visible) {
        outline: none;
      }
      details > p {
        padding: 0;
        margin: 0;
        font-size: 1rem;
        color: rgba(43, 45, 51, 1);
        line-height: 1.5rem;
        letter-spacing: 0;
      }
      details[open] > p:last-child {
        margin-bottom: 1rem;
      }
/* ========================================================================= */

/* ============================================================================
          Form Select Container
============================================================================ */
      select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 100%;
        box-sizing: border-box;
        padding: 0.75rem 3.5rem 0.75rem 0.75rem;
        font-size: 1rem;
        font-style: normal;
        font-weight: 500;
        line-height: 1.5rem;
        letter-spacing: 0;
        border-radius: 0.5rem;
        border: 1px solid rgba(43, 45, 51, 0.3);
        background-color: rgba(255, 255, 255, 1);
        color: rgba(43, 45, 51, 1);
        cursor: pointer;
      }
      select:hover:not(:focus),
      select:hover:not(:disabled),
      select:focus,
      select:focus-visible {
        outline: 2px solid rgba(43, 45, 51, 1);
        outline-offset: -1px;
        color: rgba(43, 45, 51, 1);
        box-shadow: none;
      }
      select:not(:has(option[value=""]:checked)) {
          border: 1px solid rgba(43, 45, 51, 1);
        }
      select:disabled {
        background-color: rgba(43, 45, 51, 0.05);
        color: rgba(43, 45, 51, 0.40);
        cursor: not-allowed;
      }
      select option:disabled{
        color: rgba(43, 45, 51, 0.7);
      }
      .select-wrapper {
        position: relative;
        width: 100%;
      }
      .select-wrapper::after {
        content: "";
        position: absolute;
        right: 1rem;
        display: inline-block;
        width: 1.5rem;
        height: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(43, 45, 51, 1);
        -webkit-mask-image: url("/assets/images/select-hide.svg");
        mask-image: url("/assets/images/select-hide.svg");
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        pointer-events: none;
        transition: transform 0.2s ease;
      }
      .select-wrapper:has(select:focus)::after {
        -webkit-mask-image: url("/assets/images/select-open-down.svg");
        mask-image: url("/assets/images/select-open-down.svg");
      }
/* ========================================================================= */

/* ============================================================================
          Links
============================================================================ */
      a {
        color: rgba(0, 110, 117, 1);
        text-decoration: none;
        cursor: pointer;
      }

      a:hover {
        color: rgba(0, 78, 84, 1);
        text-decoration: underline;
      }
/* ========================================================================= */

/* ============================================================================
          Terms of Use Content Container
============================================================================ */
      .tou-content {
        overflow: auto;
        max-height: 25rem;
        padding-right: 1rem;
        margin-bottom: 1rem;
      }
/* ========================================================================= */

/* ============================================================================
          Password Criteria Container
============================================================================ */
      .password-criteria{
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        margin: 0;
        padding: 0;
      }
      .password-criteria__item{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-block: 0.25rem;
        font-size: 1rem;
        color: rgba(43, 45, 51, 1);;
      }
      .password-criteria__icon {
        width: 1.5rem;
        height: 1.5rem;
        flex-shrink: 0;
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
      }
      .password-criteria__item.is-neutral .password-criteria__icon {
        -webkit-mask-image: url("/assets/images/check-gray.svg");
        mask-image: url("/assets/images/check-gray.svg");
        background-color: rgba(43, 45, 51, 1);
      }
      .password-criteria__item.is-met .password-criteria__icon {
        -webkit-mask-image: url("/assets/images/check.svg");
        mask-image: url("/assets/images/check.svg");
        background-color: rgba(32, 113, 0, 1);
      }
      .password-criteria__item.is-not-met .password-criteria__icon {
        -webkit-mask-image: url("/assets/images/cancel.svg");
        mask-image: url("/assets/images/cancel.svg");
        background-color: rgba(183, 0, 23, 1);
      }
/* ========================================================================= */