/*
|--------------------------------------------------------------------------
| IHAA Submit Modal
|--------------------------------------------------------------------------
*/

.ihaa-submit-modal {
    position: fixed;
    z-index: 99999999;
    inset: 0;
    display: flex;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.ihaa-submit-modal.is-visible {
    visibility: visible;
    opacity: 1;
}

.ihaa-submit-modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        rgba(5, 12, 18, 0.86);
    backdrop-filter: blur(8px);
}

.ihaa-submit-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(500px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 46px 38px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: #ffffff;
    text-align: center;
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.38);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.ihaa-submit-modal.is-visible
.ihaa-submit-modal-dialog {
    transform: translateY(0) scale(1);
}

body.ihaa-submit-modal-open {
    overflow: hidden !important;
}

.ihaa-submit-modal-state {
    width: 100%;
}

.ihaa-modal-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #a17a22;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ihaa-submit-modal-state h2 {
    margin: 0 0 14px;
    color: #111b23;
    font-size: 29px;
    line-height: 1.35;
}

.ihaa-submit-modal-state > p {
    margin: 0 auto 10px;
    color: #68747d;
    font-size: 15px;
    line-height: 1.85;
}


/*
|--------------------------------------------------------------------------
| Loading Animation
|--------------------------------------------------------------------------
*/

.ihaa-submit-loader {
    display: flex;
    width: 92px;
    height: 92px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background:
        linear-gradient(
            145deg,
            #f7f2e5,
            #ffffff
        );
    box-shadow:
        0 15px 35px rgba(161, 122, 34, 0.16);
}

.ihaa-submit-loader span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #a17a22;
    animation:
        ihaa-submit-dot 1.2s infinite ease-in-out;
}

.ihaa-submit-loader span:nth-child(2) {
    animation-delay: 0.15s;
}

.ihaa-submit-loader span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes ihaa-submit-dot {

    0%,
    80%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

.ihaa-submit-progress {
    position: relative;
    width: 100%;
    height: 7px;
    margin: 24px 0 16px;
    overflow: hidden;
    border-radius: 20px;
    background: #edf0f2;
}

.ihaa-submit-progress-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 42%;
    border-radius: 20px;
    background:
        linear-gradient(
            90deg,
            #9a741e,
            #d2b362
        );
    animation:
        ihaa-progress-moving 1.5s infinite ease-in-out;
}

@keyframes ihaa-progress-moving {

    0% {
        right: -42%;
    }

    100% {
        right: 100%;
    }
}

.ihaa-submit-modal-state small {
    display: block;
    color: #909aa1;
    font-size: 12px;
    line-height: 1.7;
}


/*
|--------------------------------------------------------------------------
| Success State
|--------------------------------------------------------------------------
*/

.ihaa-submit-success-icon {
    width: 92px;
    height: 92px;
    margin: 0 auto 23px;
}

.ihaa-submit-success-icon svg {
    width: 100%;
    height: 100%;
}

.ihaa-submit-success-icon circle {
    fill: #e9f8ef;
    stroke: #24915b;
    stroke-width: 2;
}

.ihaa-submit-success-icon path {
    fill: none;
    stroke: #24915b;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ihaa-submitted-number {
    display: flex;
    width: min(280px, 100%);
    flex-direction: column;
    gap: 6px;
    margin: 24px auto 18px;
    padding: 17px 25px;
    border: 1px solid #e0e5e8;
    border-radius: 14px;
    background: #f7f9fa;
}

.ihaa-submitted-number span {
    color: #78838b;
    font-size: 12px;
    font-weight: 700;
}

.ihaa-submitted-number strong {
    color: #111b23;
    font-size: 31px;
    line-height: 1.2;
}

.ihaa-success-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 0 24px;
    padding: 13px 15px;
    border-radius: 11px;
    background: #faf6eb;
    text-align: right;
}

.ihaa-success-notice-icon {
    display: flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #a17a22;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.ihaa-success-notice p {
    margin: 0;
    color: #71633f;
    font-size: 13px;
    line-height: 1.7;
}

.ihaa-submit-home-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border: 0;
    border-radius: 10px;
    background: #111b23;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none !important;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.ihaa-submit-home-button:hover {
    background: #a17a22;
    color: #ffffff;
    transform: translateY(-2px);
}


/*
|--------------------------------------------------------------------------
| Error State
|--------------------------------------------------------------------------
*/

.ihaa-submit-error-icon {
    display: flex;
    width: 82px;
    height: 82px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #fff0f0;
    color: #bf3232;
    font-size: 40px;
    font-weight: 900;
}

.ihaa-submit-retry-button {
    min-height: 50px;
    margin-top: 20px;
    padding: 12px 27px;
    border: 0;
    border-radius: 10px;
    background: #111b23;
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
}

.ihaa-submit-retry-button:hover {
    background: #a17a22;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .ihaa-submit-modal {
        padding: 14px;
    }

    .ihaa-submit-modal-dialog {
        padding: 38px 22px;
        border-radius: 18px;
    }

    .ihaa-submit-modal-state h2 {
        font-size: 25px;
    }

    .ihaa-submit-modal-state > p {
        font-size: 14px;
    }

    .ihaa-submit-home-button {
        width: 100%;
    }

}