/* Audiobook Lead Form Pro */
.alfp-shell,
.alfp-shell * {
    box-sizing: border-box;
}

.alfp-shell {
    --alfp-orange: #ffa000;
    --alfp-orange-dark: #d75400;
    --alfp-black: #030303;
    --alfp-border: #b7b7b7;
    --alfp-text: #5f6267;
    width: 100%;
    padding: 18px;
    font-family: Arial, Helvetica, sans-serif;
}

.alfp-card {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 154px 42px 42px;
    background: #fff;
    box-shadow: 0 14px 42px rgba(31, 25, 15, 0.16);
    animation: alfpCardEnter .7s cubic-bezier(.2,.8,.2,1) both;
}

.alfp-ribbon {
    position: absolute;
    z-index: 4;
    top: 20px;
    left: -30px;
    width: calc(100% + 2px);
    min-height: 118px;
    padding: 0 56px 0 46px;
    display: flex;
    align-items: center;
    color: #fff;
    background: var(--alfp-orange);
    clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 50%, calc(100% - 48px) 100%, 0 100%);
    filter: drop-shadow(0 7px 9px rgba(0,0,0,.06));
    overflow: visible;
}

.alfp-ribbon::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -32px;
    width: 30px;
    height: 32px;
    background: var(--alfp-orange-dark);
    clip-path: polygon(0 0, 100% 100%, 100% 0);
}

.alfp-ribbon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 42%,
        rgba(255,255,255,.18) 49%,
        transparent 56%,
        transparent 100%
    );
    transform: translateX(-110%);
    animation: alfpShine 4.2s ease-in-out infinite 1.1s;
    pointer-events: none;
}

.alfp-ribbon-inner {
    position: relative;
    z-index: 2;
}

.alfp-ribbon strong,
.alfp-ribbon span {
    display: block;
}

.alfp-ribbon strong {
    margin-bottom: 6px;
    font-size: clamp(20px, 3vw, 29px);
    line-height: 1.15;
    font-weight: 800;
    text-transform: uppercase;
}

.alfp-ribbon span {
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.35;
    font-weight: 500;
}

.alfp-form {
    width: 100%;
}

.alfp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.alfp-field {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 69px;
    overflow: hidden;
    border: 1px solid var(--alfp-border);
    border-radius: 8px;
    background: #fff;
    transition:
        border-color .22s ease,
        box-shadow .22s ease,
        transform .22s ease,
        background-color .22s ease;
}

.alfp-field:hover {
    border-color: #8f8f8f;
}

.alfp-field:focus-within {
    border-color: var(--alfp-orange);
    background: #fffdf9;
    box-shadow: 0 0 0 4px rgba(255, 160, 0, .13);
    transform: translateY(-2px);
}

.alfp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    min-width: 68px;
    color: #7b7d80;
}

.alfp-icon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: color .22s ease, transform .22s ease;
}

.alfp-field:focus-within .alfp-icon {
    color: var(--alfp-orange);
}

.alfp-field:focus-within .alfp-icon svg {
    transform: scale(1.05);
}

.alfp-field input,
.alfp-field select,
.alfp-field textarea {
    width: 100%;
    margin: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #373b40;
    font-family: inherit;
}

.alfp-field input,
.alfp-field select {
    min-height: 67px;
    padding: 0 18px 0 0;
    font-size: 18px;
}

.alfp-field select {
    cursor: pointer;
    appearance: auto;
}

.alfp-field input::placeholder,
.alfp-field textarea::placeholder {
    color: var(--alfp-text);
    opacity: 1;
}

.alfp-phone-field {
    padding-left: 18px;
}

.alfp-country {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 105px;
    white-space: nowrap;
    color: #36393d;
    font-size: 17px;
}

.alfp-flag {
    font-size: 20px;
    line-height: 1;
}

.alfp-phone-field input {
    padding-right: 12px;
}

.alfp-full {
    margin-top: 30px;
}

.alfp-textarea-wrap {
    align-items: flex-start;
    min-height: 188px;
}

.alfp-textarea-icon {
    padding-top: 27px;
}

.alfp-field textarea {
    min-height: 186px;
    padding: 28px 20px 20px 0;
    resize: vertical;
    font-size: 18px;
    line-height: 1.55;
}

.alfp-submit {
    position: relative;
    width: 100%;
    min-height: 72px;
    margin: 12px 0 0;
    padding: 14px 28px;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: var(--alfp-black);
    color: #fff;
    font-family: inherit;
    font-size: clamp(23px, 3vw, 30px);
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform .22s ease,
        background-color .22s ease,
        box-shadow .22s ease;
}

.alfp-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255,255,255,.22) 48%,
        transparent 55%
    );
    transform: translateX(-120%);
    transition: transform .55s ease;
}

.alfp-submit:hover {
    background: var(--alfp-orange);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(255, 160, 0, .25);
}

.alfp-submit:hover::before {
    transform: translateX(120%);
}

.alfp-submit:active {
    transform: translateY(0);
}

.alfp-submit:disabled {
    opacity: .72;
    cursor: wait;
    transform: none;
}

.alfp-button-text,
.alfp-spinner {
    position: relative;
    z-index: 2;
}

.alfp-spinner {
    display: none;
    width: 23px;
    height: 23px;
    margin-left: 12px;
    vertical-align: middle;
    border: 3px solid rgba(255,255,255,.42);
    border-top-color: #fff;
    border-radius: 50%;
    animation: alfpSpin .75s linear infinite;
}

.alfp-submit.is-loading .alfp-spinner {
    display: inline-block;
}

.alfp-message {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.45;
    animation: alfpMessageEnter .25s ease both;
}

.alfp-message.is-success {
    display: block;
    border: 1px solid #b9e4c5;
    background: #ebf8ef;
    color: #155d2b;
}

.alfp-message.is-error {
    display: block;
    border: 1px solid #efc0c0;
    background: #fff0f0;
    color: #9d2020;
}

.alfp-field.has-error {
    border-color: #d63638;
    box-shadow: 0 0 0 3px rgba(214, 54, 56, .1);
    animation: alfpShake .28s ease both;
}

.alfp-honeypot {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@keyframes alfpCardEnter {
    from {
        opacity: 0;
        transform: translateY(22px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes alfpShine {
    0%, 68% {
        transform: translateX(-110%);
    }
    82%, 100% {
        transform: translateX(110%);
    }
}

@keyframes alfpSpin {
    to { transform: rotate(360deg); }
}

@keyframes alfpMessageEnter {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes alfpShake {
    0%, 100% { transform: translateX(0); }
    35% { transform: translateX(-5px); }
    70% { transform: translateX(5px); }
}

@media (max-width: 767px) {
    .alfp-shell {
        padding: 10px;
    }

    .alfp-card {
        padding: 132px 18px 24px;
    }

    .alfp-ribbon {
        top: 14px;
        left: -10px;
        width: calc(100% + 2px);
        min-height: 102px;
        padding: 18px 44px 18px 22px;
    }

    .alfp-ribbon::before {
        bottom: -20px;
        width: 10px;
        height: 20px;
    }

    .alfp-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .alfp-full {
        margin-top: 16px;
    }

    .alfp-field {
        min-height: 62px;
    }

    .alfp-icon {
        width: 58px;
        min-width: 58px;
    }

    .alfp-icon svg {
        width: 26px;
        height: 26px;
    }

    .alfp-field input,
    .alfp-field select {
        min-height: 60px;
        font-size: 16px;
    }

    .alfp-country {
        min-width: 96px;
        font-size: 15px;
    }

    .alfp-phone-field {
        padding-left: 14px;
    }

    .alfp-textarea-wrap {
        min-height: 150px;
    }

    .alfp-field textarea {
        min-height: 148px;
        font-size: 16px;
    }

    .alfp-submit {
        min-height: 62px;
        font-size: 21px;
    }
}

@media (max-width: 430px) {
    .alfp-card {
        padding-top: 144px;
    }

    .alfp-ribbon {
        min-height: 114px;
        clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%);
        padding-right: 36px;
    }

    .alfp-ribbon strong {
        font-size: 18px;
    }

    .alfp-ribbon span {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .alfp-card,
    .alfp-ribbon::after,
    .alfp-spinner,
    .alfp-message,
    .alfp-field.has-error {
        animation: none !important;
    }

    .alfp-field,
    .alfp-submit,
    .alfp-icon svg {
        transition: none !important;
    }
}
