*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    max-width: 100%;
    overflow-x: hidden;
    background: #231f20;
}

body.dsb-site {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--dsb-color-ink);
    font-family: var(--dsb-font-body);
}

@supports (overflow: clip) {
    html,
    body.dsb-site {
        overflow-x: clip;
    }
}

.dsb-page {
    width: min(100%, var(--dsb-page-width));
    min-height: 100svh;
    margin: 0 auto;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        var(--dsb-color-page-start) 0%,
        var(--dsb-color-page-middle) 52%,
        var(--dsb-color-page-end) 100%
    );
}

.dsb-giver-page,
.dsb-receiver-page {
    position: relative;
    min-height: 100svh;
}

.dsb-giver-page::before,
.dsb-giver-page::after,
.dsb-receiver-page::before,
.dsb-receiver-page::after {
    position: absolute;
    left: 0;
    width: 100%;
    content: "";
    pointer-events: none;
}

.dsb-giver-page::before,
.dsb-receiver-page::before {
    z-index: 0;
    top: 0;
    height: 140px;
    background: url("../../img/dsb3/top-decorator.png") top center / 100% 140px no-repeat;
}

.dsb-giver-page::after,
.dsb-receiver-page::after {
    z-index: 0;
    bottom: -190px;
    height: 380px;
    background: var(--dsb-color-cream);
    opacity: 0.18;
    -webkit-mask: url("../../img/mcc/bgcenter.svg") bottom center / 100% 380px no-repeat;
    mask: url("../../img/mcc/bgcenter.svg") bottom center / 100% 380px no-repeat;
}

.dsb-giver-page > .dsb-header,
.dsb-giver-page__content,
.dsb-receiver-page > .dsb-header,
.dsb-receiver-page__content {
    position: relative;
    z-index: 1;
}

.dsb-page__content {
    width: min(calc(100% - 48px), var(--dsb-content-width));
    margin: 48px auto 0;
}

.dsb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - 32px), var(--dsb-header-width));
    height: var(--dsb-logo-box);
    margin: var(--dsb-space-5) auto 0;
}

.dsb-logo {
    position: relative;
    flex: 0 0 var(--dsb-logo-box);
    width: var(--dsb-logo-box);
    height: var(--dsb-logo-box);
    overflow: hidden;
    border-radius: var(--dsb-radius-round);
}

.dsb-logo--aashirvaad {
    background: var(--dsb-color-primary-dark);
}

.dsb-logo--sunfeast {
    background: var(--dsb-color-surface);
}

.dsb-logo__image {
    position: absolute;
    display: block;
    max-width: none;
    object-fit: cover;
    pointer-events: none;
}

.dsb-logo__image--aashirvaad {
    top: calc(50% + 2px);
    left: 50%;
    width: 74px;
    height: 74px;
    transform: translate(-50%, -50%);
}

.dsb-logo__image--master-chef {
    top: -5.25px;
    left: -5.25px;
    width: 70.5px;
    height: 70.5px;
}

.dsb-logo__image--sunfeast {
    top: -0.94px;
    left: 0;
    width: 60px;
    height: 60.94px;
}

.dsb-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--dsb-space-5);
    width: 100%;
    text-align: center;
}

.dsb-hero__illustration {
    display: block;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: var(--dsb-radius-illustration);
    object-fit: contain;
    clip-path: inset(0 round var(--dsb-radius-illustration));
}

.dsb-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--dsb-space-3);
    width: 100%;
}

.dsb-hero__title {
    margin: 0;
    color: var(--dsb-color-ink);
    font-family: var(--dsb-font-display);
    font-size: var(--dsb-text-lg);
    font-weight: 400;
    line-height: normal;
}

.dsb-hero__description {
    margin: 0;
    color: var(--dsb-color-primary);
    font-size: var(--dsb-text-xs);
    font-weight: 400;
    line-height: var(--dsb-leading-body);
}

.dsb-form {
    display: flex;
    flex-direction: column;
    gap: var(--dsb-space-6);
    width: 100%;
    margin-top: var(--dsb-space-7);
}

.dsb-field {
    display: flex;
    flex-direction: column;
    gap: var(--dsb-space-2);
    width: 100%;
}

.dsb-field__label {
    color: var(--dsb-color-ink);
    font-family: var(--dsb-font-display);
    font-size: var(--dsb-text-sm);
    font-weight: 400;
    line-height: normal;
}

.dsb-field__control {
    width: 100%;
    height: var(--dsb-control-height);
    padding: 16px 20px;
    border: 1px solid var(--dsb-color-primary);
    border-radius: var(--dsb-radius-control);
    outline: none;
    background: var(--dsb-color-surface);
    color: var(--dsb-color-ink);
    font-family: var(--dsb-font-body);
    font-size: var(--dsb-text-md);
    line-height: var(--dsb-leading-control);
    backdrop-filter: blur(4.5px);
}

.dsb-field__control:focus-visible {
    border-color: var(--dsb-color-focus);
    box-shadow: 0 0 0 3px rgba(23, 57, 108, 0.22);
}

.dsb-field__control[aria-invalid="true"] {
    border-color: var(--dsb-color-error);
}

.dsb-field__error {
    margin: 0;
    color: var(--dsb-color-error);
    font-size: 12px;
    line-height: 16px;
}

.dsb-actions {
    display: flex;
    align-items: stretch;
    gap: var(--dsb-space-3);
    width: 100%;
    height: var(--dsb-action-height);
}

.dsb-button {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 0;
    border-radius: var(--dsb-radius-control);
    text-decoration: none;
    cursor: pointer;
}

.dsb-button__label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 16px;
    font-family: var(--dsb-font-display);
    font-size: var(--dsb-text-md);
    font-weight: 400;
    line-height: normal;
    text-align: center;
}

.dsb-button--secondary {
    flex: 0 0 89px;
    border: 1px solid var(--dsb-color-cream);
    background: transparent;
    color: var(--dsb-color-cream);
}

.dsb-button--secondary .dsb-button__label {
    padding: 10px 24px;
}

.dsb-button--primary {
    flex: 1 1 auto;
    padding: 2px;
    border: 1px solid var(--dsb-color-primary-dark);
    border-radius: var(--dsb-radius-round);
    background: transparent;
    color: var(--dsb-color-primary-dark);
    box-shadow:
        0 0 0 1px var(--dsb-color-button-rim),
        0 1px 0 1px rgba(243, 193, 154, 0.85);
}

.dsb-button--primary .dsb-button__label {
    padding: 12px 10px;
    border-radius: inherit;
    background: var(--dsb-color-cream);
    box-shadow: inset 0 0 0 1px rgba(104, 13, 15, 0.14);
}

.dsb-button:hover {
    color: inherit;
}

.dsb-button:focus-visible {
    outline: 3px solid var(--dsb-color-focus);
    outline-offset: 2px;
}

.dsb-button:disabled,
.dsb-button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
