.makkah-form {
    --mf-primary: #8C311E;
    --mf-accent: #B9CA6F;
    --mf-text: #282828;
    --mf-muted: #676767;
    --mf-surface: #fffdf9;
    --mf-border: rgba(140, 49, 30, 0.13);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    padding: clamp(34px, 5vw, 76px);
    border: 1px solid var(--mf-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 12%, rgba(185, 202, 111, 0.22), transparent 28%),
        linear-gradient(135deg, #fffdf9 0%, #ffffff 58%, #fbf8f3 100%);
    box-shadow: 0 18px 50px rgba(49, 31, 24, 0.08);
    color: var(--mf-text);
}

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

.makkah-form__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
    align-items: center;
    gap: clamp(32px, 6vw, 82px);
    max-width: 1180px;
    margin: 0 auto;
}

.makkah-form__copy {
    min-width: 0;
}

.makkah-form__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px;
    color: var(--mf-primary);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.makkah-form__eyebrow-mark {
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: var(--mf-accent);
}

.makkah-form__title {
    max-width: 760px;
    margin: 0;
    color: var(--mf-primary);
    font-family: inherit;
    font-size: clamp(32px, 4.5vw, 58px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.makkah-form__description {
    max-width: 720px;
    margin: 22px 0 0;
    color: var(--mf-muted);
    font-size: clamp(16px, 1.7vw, 18px);
    line-height: 1.75;
}

.makkah-form__actions {
    margin-top: 30px;
}

.makkah-form__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.makkah-form__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 15px 22px;
    border: 2px solid var(--mf-primary);
    border-radius: 10px;
    background: var(--mf-primary);
    box-shadow: 0 10px 24px rgba(140, 49, 30, 0.2);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease;
}

.makkah-form__download svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: currentColor;
}

.makkah-form__download:hover,
.makkah-form__download:focus-visible {
    transform: translateY(-2px);
    background: transparent;
    color: var(--mf-primary) !important;
    box-shadow: 0 13px 30px rgba(140, 49, 30, 0.16);
}

.makkah-form__download:focus-visible {
    outline: 3px solid rgba(185, 202, 111, 0.6);
    outline-offset: 3px;
}

.makkah-form__download--word {
    background: #ffffff;
    color: var(--mf-primary) !important;
    box-shadow: 0 8px 20px rgba(140, 49, 30, 0.08);
}

.makkah-form__download--word:hover,
.makkah-form__download--word:focus-visible {
    background: var(--mf-primary);
    color: #ffffff !important;
    box-shadow: 0 13px 30px rgba(140, 49, 30, 0.16);
}

.makkah-form__helper {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: 520px;
    margin-top: 14px;
    color: var(--mf-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.makkah-form__helper svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: var(--mf-accent);
}

.makkah-form__document {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 300px;
}

.makkah-form__paper {
    position: relative;
    width: min(100%, 245px);
    aspect-ratio: 0.76;
    padding: 34px 26px;
    border: 1px solid rgba(140, 49, 30, 0.14);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 46px rgba(67, 42, 32, 0.14);
    transform: rotate(3deg);
}

.makkah-form__paper::before {
    content: '';
    position: absolute;
    inset: 9px -11px -11px 9px;
    z-index: -1;
    border-radius: 14px;
    background: rgba(185, 202, 111, 0.28);
    transform: rotate(-5deg);
}

.makkah-form__paper-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 9px;
    border-radius: 6px;
    background: var(--mf-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

.makkah-form__paper-icon {
    width: 74px;
    height: 74px;
    margin: 20px 0 28px;
    color: var(--mf-primary);
}

.makkah-form__paper-line {
    width: 72%;
    height: 8px;
    margin-top: 13px;
    border-radius: 999px;
    background: rgba(140, 49, 30, 0.11);
}

.makkah-form__paper-line--wide {
    width: 92%;
}

.makkah-form__paper-line--short {
    width: 52%;
}

.makkah-form__seal {
    position: absolute;
    right: 7%;
    bottom: 8%;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 6px solid #fff;
    border-radius: 50%;
    background: var(--mf-accent);
    box-shadow: 0 10px 24px rgba(60, 70, 30, 0.18);
    color: var(--mf-primary);
}

.makkah-form__seal svg {
    width: 33px;
    height: 33px;
    fill: currentColor;
}

.makkah-form__decor {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(140, 49, 30, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.makkah-form__decor--one {
    width: 250px;
    height: 250px;
    top: -140px;
    left: -80px;
}

.makkah-form__decor--two {
    width: 390px;
    height: 390px;
    right: -250px;
    bottom: -250px;
}

@media (max-width: 900px) {
    .makkah-form__inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .makkah-form__document {
        min-height: 245px;
    }

    .makkah-form__paper {
        width: 190px;
    }

    .makkah-form__seal {
        right: calc(50% - 135px);
    }
}

@media (max-width: 600px) {
    .makkah-form {
        padding: 30px 20px;
        border-radius: 18px;
    }

    .makkah-form__title {
        font-size: clamp(30px, 10vw, 40px);
    }

    .makkah-form__description {
        margin-top: 17px;
        font-size: 15.5px;
        line-height: 1.65;
    }

    .makkah-form__actions {
        margin-top: 24px;
    }

    .makkah-form__buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .makkah-form__download {
        width: 100%;
    }

    .makkah-form__helper {
        max-width: none;
    }

    .makkah-form__document {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .makkah-form__download {
        transition: none;
    }
}
