/* Search Ads Package Landing Page */
body {
    background-color: #f7f9fb;
}
.search-ads-package-main {
    direction: rtl;
    text-align: right;
}

.sap-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.sap-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #041330;
    text-align: center;
    margin-bottom: 48px;
}

/* Hero Section */
.sap-hero {
    background: linear-gradient(90deg, #041330 0%, #0d2c6d 50%, #041330 100%);
    color: #fff;
    padding: 20px 0;
    height: 500px;
    display: flex;
}

.sap-hero__inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.sap-hero__content,
.sap-hero__media {
    flex: 0 0 50%;
    max-width: 50%;
}

.sap-hero__title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    color: #fff;
}

.sap-hero__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Description Section */
.sap-description {
    padding: 60px 0;
}

.sap-description__box {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 36px;
    border-radius: 24px;
    box-shadow: 0 4px 24px 0 rgba(145, 145, 145, 0.16);
    background: linear-gradient(89.86deg, #E5B36F 0.12%, #D1944D 100.43%);
}

.sap-description__content
 {
    flex: 0 0 70%;
    max-width: 70%;
}

.sap-description__media {
    flex: 0 0 30%;
    max-width: 30%;
}

.sap-description__title {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
    margin: 0 0 20px;
}

.sap-description__text {
    font-size: 20px;
    line-height: 1.8;
    color: #fff;
    margin: 0;
}

.sap-description__image {
    width: 100%;
    max-width: 235px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Package Section */
.sap-packages {
    padding: 60px 0;
    background-color: #fff;
}

.sap-packages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sap-package-card {
    background: #F7F9FB;
    border-radius: 16px;

    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sap-package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px 0 rgba(145, 145, 145, 0.24);
}

.sap-package-card__icon-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sap-package-card__image {
    position: relative;
    z-index: 2;
    width: 162px;
    height: auto;
    display: block;
}

.sap-package-card__circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    border-radius: 50%;
    border: 1px solid rgba(13, 44, 109, 0.25);
    opacity: 0;
    pointer-events: none;
}

.sap-package-card__circle--1 {
    width: 100px;
    height: 100px;
}

.sap-package-card__circle--2 {
    width: 130px;
    height: 130px;
}

.sap-package-card__circle--3 {
    width: 160px;
    height: 160px;
}

.sap-package-card:hover .sap-package-card__circle {
    animation: sap-circle-pulse 1.8s ease-out infinite;
}

.sap-package-card:hover .sap-package-card__circle--2 {
    animation-delay: 0.3s;
}

.sap-package-card:hover .sap-package-card__circle--3 {
    animation-delay: 0.6s;
}

@keyframes sap-circle-pulse {
    0% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(0.6);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.sap-package-card__title-wrap {
    text-align: center;
    margin-bottom: 12px;
}

.sap-package-card__title {
    position: relative;
    display: inline-block;
    font-size: 40px;
    font-weight: 700;
    color: #223C78;
    margin: 0;
}

.sap-package-card__badge {
    position: absolute;
    top: 50%;
    right: calc(100% + 10px);
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #24A148;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 999px;
    white-space: nowrap;
}

.sap-package-card__desc {
    font-size: 16px;
    line-height: 28px;
    font-weight: 600px;
    color: #161616;
    margin: 0;
}

/* Form Section */
.sap-form-section {
    margin: 60px 0;
    padding: 64px 0 64px;
    background: #EDF5FF;
}

.sap-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: end;
}

.sap-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sap-form__label {
    font-size: 14px;
    font-weight: 400;
    color: #525252;
}

.sap-form__input,
.sap-form__select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #041330;
    direction: rtl;
    box-sizing: border-box;
}

.sap-form__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 12px 16px 12px 44px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    background-size: 12px 8px;
    cursor: pointer;
}

.sap-form__input:focus,
.sap-form__select:focus {
    outline: none;
    border-color: #0d2c6d;
    box-shadow: 0 0 0 2px rgba(13, 44, 109, 0.15);
}

.sap-form__submit {
    width: 100%;
    padding: 12px 24px;
    background: #223C78;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.sap-form__submit:hover:not(:disabled) {
    background: #0d2c6d;
}

.sap-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.sap-form__message {
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
}

.sap-form__message--success {
    color: #059669;
}

.sap-form__message--error {
    color: #dc2626;
}

/* Success Modal */
body.sap-modal-open {
    overflow: hidden;
}

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

.sap-modal--open {
    opacity: 1;
    visibility: visible;
}

.sap-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.sap-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    padding: 48px 32px 40px;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.sap-modal--open .sap-modal__dialog {
    transform: scale(1);
}

.sap-modal__close {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.sap-modal__close:hover {
    color: #374151;
    background: #f3f4f6;
}

.sap-modal__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.sap-modal__icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 8px;
}

.sap-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
    margin: 0;
    line-height: 1.6;
}

.sap-modal__subtitle {
    font-size: 15px;
    font-weight: 400;
    color: #374151;
    margin: 0;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 992px) {
    .sap-hero__inner {
        flex-direction: column;
    }

    .sap-hero__content,
    .sap-hero__media {
        max-width: 100%;
    }

    .sap-hero__title {
        font-size: 48px;
        text-align: center;
    }

    .sap-description__box {
        flex-direction: column-reverse;
        padding: 15px;
    }

    .sap-description__content,
    .sap-description__media {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .sap-description__title {
        font-size: 24px;
        text-align: center;
    }

    .sap-description__text {
        text-align: justify;
        font-size: 16px;
    }

    .sap-packages__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .sap-form {
        grid-template-columns: 1fr;
    }

    .sap-section-title {
        font-size: 20px;
        margin-bottom: 32px;
    }
}

@media (max-width: 576px) {
    .sap-description__box {
        gap: 15px;
    }
    .sap-description__image {
        max-width: 157px;
    }
    .sap-hero {
        height: 550px;
        padding: 48px 0;
    }

    .sap-hero__content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .sap-hero__title {
        font-size: 40px;
    }
    .sap-package-card__title {
        font-size: 32px;
    }
}
