/* ================================
   SAFARI QUOTE POPUP
================================ */

.sqp-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    animation: sqpFadeIn 0.3s ease;
}

.sqp-popup.active {
    display: block;
}


/* ================================
   DARK OVERLAY
================================ */

.sqp-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 25, 18, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


/* ================================
   POPUP CONTENT
================================ */

.sqp-popup-content {
    position: relative;

    width: 90%;
    max-width: 700px;

    margin: 5vh auto;

    background: #fdfaf3;

    padding: 36px;

    border-radius: 12px;

    max-height: 90vh;
    overflow-y: auto;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35);

    animation: sqpSlideDown 0.3s ease;

    box-sizing: border-box;
}


/* ================================
   POPUP SCROLLBAR
================================ */

.sqp-popup-content::-webkit-scrollbar {
    width: 7px;
}

.sqp-popup-content::-webkit-scrollbar-track {
    background: #eee9df;
    border-radius: 10px;
}

.sqp-popup-content::-webkit-scrollbar-thumb {
    background: #c19a6b;
    border-radius: 10px;
}

.sqp-popup-content::-webkit-scrollbar-thumb:hover {
    background: #8b6b3f;
}


/* ================================
   CLOSE BUTTON
================================ */

.sqp-close {
    position: absolute;

    top: 14px;
    right: 16px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #c19a6b;
    color: #ffffff;

    border: none;
    border-radius: 50%;

    font-size: 23px;
    font-weight: 400;

    cursor: pointer;

    line-height: 1;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.sqp-close:hover {
    background: #8b6b3f;
    transform: rotate(90deg);
}


/* ================================
   POPUP FORM
================================ */

.sqp-popup-content .sqp-form {
    width: 100%;
}

.sqp-popup-content .sqp-form h3 {
    margin: 0 45px 28px 0;

    color: #26351f;

    font-size: 28px;
    font-weight: 700;

    line-height: 1.25;
}

.sqp-popup-content .sqp-form h4 {
    margin: 26px 0 12px;

    color: #3c4935;

    font-size: 17px;
    font-weight: 600;

    line-height: 1.4;

    border-bottom: 1px solid #e4ddd1;

    padding-bottom: 8px;
}


/* ================================
   FORM GRID
================================ */

.sqp-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 8px;
}


/* ================================
   FORM FIELDS
================================ */

.sqp-popup-content .sqp-form input,
.sqp-popup-content .sqp-form select,
.sqp-popup-content .sqp-form textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 13px 15px;

    border: 1px solid #d8d1c5;

    border-radius: 6px;

    background: #ffffff;

    color: #333333;

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


/* Placeholder */

.sqp-popup-content .sqp-form input::placeholder,
.sqp-popup-content .sqp-form textarea::placeholder {
    color: #8a8a8a;
}


/* Focus */

.sqp-popup-content .sqp-form input:focus,
.sqp-popup-content .sqp-form select:focus,
.sqp-popup-content .sqp-form textarea:focus {
    outline: none;

    border-color: #c19a6b;

    background: #fff;

    box-shadow:
        0 0 0 3px rgba(193, 154, 107, 0.12);
}


/* Textarea */

.sqp-popup-content .sqp-form textarea {
    min-height: 120px;

    resize: vertical;

    line-height: 1.5;
}


/* Select */

.sqp-popup-content .sqp-form select {
    cursor: pointer;
}


/* Labels */

.sqp-popup-content .sqp-form label {
    display: block;

    margin-bottom: 7px;

    color: #46513f;

    font-size: 14px;
    font-weight: 600;
}


/* ================================
   SUBMIT BUTTON
================================ */

.sqp-popup-content .sqp-form button[type="submit"] {
    width: 100%;

    margin-top: 24px;

    padding: 15px 22px;

    border: none;
    border-radius: 6px;

    background: #8b6b3f;

    color: #ffffff;

    font-family: inherit;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.sqp-popup-content .sqp-form button[type="submit"]:hover {
    background: #6f542f;

    transform: translateY(-1px);

    box-shadow:
        0 6px 18px rgba(111, 84, 47, 0.25);
}

.sqp-popup-content .sqp-form button[type="submit"]:active {
    transform: translateY(0);
}


/* ================================
   OPEN POPUP BUTTON
================================ */

.sqp-open-popup {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 14px 25px;

    border: none;
    border-radius: 6px;

    background: #8b6b3f;

    color: #ffffff;

    font-family: inherit;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.sqp-open-popup:hover {
    background: #6f542f;

    transform: translateY(-2px);

    box-shadow:
        0 6px 18px rgba(111, 84, 47, 0.25);
}


/* ================================
   ANIMATIONS
================================ */

@keyframes sqpFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes sqpSlideDown {
    from {
        opacity: 0;
        transform: translateY(-25px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ================================
   MOBILE
================================ */

@media (max-width: 768px) {

    .sqp-popup-content {
        width: 94%;

        margin: 3vh auto;

        padding: 25px 20px;

        max-height: 94vh;

        border-radius: 10px;
    }


    .sqp-popup-content .sqp-form h3 {
        font-size: 24px;

        margin-right: 35px;

        margin-bottom: 22px;
    }


    .sqp-popup-content .sqp-form h4 {
        font-size: 16px;

        margin-top: 22px;
    }


    .sqp-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }


    .sqp-close {
        top: 10px;
        right: 10px;

        width: 34px;
        height: 34px;

        font-size: 21px;
    }


    .sqp-popup-content .sqp-form input,
    .sqp-popup-content .sqp-form select,
    .sqp-popup-content .sqp-form textarea {
        font-size: 16px;
        padding: 13px 14px;
    }


    .sqp-popup-content .sqp-form button[type="submit"] {
        padding: 15px 20px;

        font-size: 16px;
    }
}


/* ================================
   SMALL MOBILE
================================ */

@media (max-width: 480px) {

    .sqp-popup-content {
        width: 96%;

        margin: 2vh auto;

        padding: 22px 16px;

        max-height: 96vh;
    }

    .sqp-popup-content .sqp-form h3 {
        font-size: 22px;
    }

    .sqp-popup-content .sqp-form h4 {
        font-size: 15px;
    }
}
