/* ============================================
   Contact Modal (Let's Talk) - Redesigned v2
   ============================================ */
.contact-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.contact-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.contact-modal__backdrop {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.contact-modal__container {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.2);
    transform: scale(0.96) translateY(10px);
    transition: transform 0.35s ease;
}
.contact-modal.active .contact-modal__container {
    transform: scale(1) translateY(0);
}
/* v2: header strip */
.contact-modal--v2 .contact-modal__header {
    background: linear-gradient(135deg, var(--donatix-base, #c30205) 0%, #8b0204 100%);
    color: #fff;
    padding: 2rem 2rem 1.75rem;
    text-align: center;
    position: relative;
}
.contact-modal--v2 .contact-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 1rem;
}
.contact-modal--v2 .contact-modal__icon .icon-chat {
    font-size: 1.5rem;
}
.contact-modal--v2 .contact-modal__title {
    font-size: 1.75rem;
    margin: 0 0 0.35rem;
    color: #fff;
    font-weight: 700;
}
.contact-modal--v2 .contact-modal__subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
}
.contact-modal--v2 .contact-modal__close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.contact-modal--v2 .contact-modal__close:hover {
    background: #fff;
    color: var(--donatix-base, #c30205);
}
.contact-modal__body {
    padding: 1.75rem 2rem 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 180px);
}
.contact-modal__form .form-group {
    margin-bottom: 1.1rem;
}
.contact-modal__form input,
.contact-modal__form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-modal__form input:focus,
.contact-modal__form textarea:focus {
    outline: none;
    border-color: var(--donatix-base, #c30205);
    box-shadow: 0 0 0 3px rgba(195, 2, 5, 0.12);
}
.contact-modal__form textarea {
    resize: vertical;
    min-height: 100px;
}
.contact-modal__btn-box {
    margin-top: 0.25rem;
}
.contact-modal__btn-box .thm-btn {
    padding: 12px 24px;
}
body.contact-modal-active {
    overflow: hidden;
}

/* ============================================
   Search Modal - Large, drops from top
   ============================================ */
.search-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: none;
    transition: pointer-events 0s 0.4s;
}
.search-modal.active {
    pointer-events: auto;
    transition: pointer-events 0s 0s;
}
/* Panel: full width, large height, drops from top */
.search-modal--drop .search-modal__panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 420px;
    min-height: 320px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 5rem 2rem 2rem;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}
.search-modal--drop.active .search-modal__panel {
    transform: translateY(0);
}
/* Backdrop: below panel, dimmed, click to close */
.search-modal--drop .search-modal__backdrop {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 1;
}
.search-modal--drop.active .search-modal__backdrop {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.15s;
}
.search-modal__content {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}
.search-modal__close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.07);
    border: none;
    border-radius: 50%;
    color: #333;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 3;
}
.search-modal__close:hover {
    background: var(--donatix-base, #c30205);
    color: #fff;
}
.search-modal__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--donatix-base, #c30205);
    margin-bottom: 1rem;
}
.search-modal__input-wrap {
    display: flex;
    align-items: stretch;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-modal__input-wrap:focus-within {
    border-color: var(--donatix-base, #c30205);
    box-shadow: 0 0 0 4px rgba(195, 2, 5, 0.12);
}
.search-modal__input {
    flex: 1;
    padding: 14px 20px;
    font-size: 1.1rem;
    border: none;
    outline: none;
    min-height: 52px;
}
.search-modal__input::placeholder {
    color: #999;
}
.search-modal__btn {
    padding: 0 24px;
    background: var(--donatix-black, #1a1a1a);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    min-width: 56px;
    transition: background 0.2s;
}
.search-modal__btn:hover {
    background: var(--donatix-base, #c30205);
}
.search-modal__hint {
    margin: 1.25rem 0 0;
    font-size: 0.85rem;
    color: #888;
}
body.search-modal-active {
    overflow: hidden;
}
