/* ============================================
   Report 360 Modal
   Purchase modal for the 360° property report.
   All selectors scoped under .report360-modal.
   ============================================ */

/* === Modal Overlay === */
.report360-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: report360-fade-in 0.2s ease-out;
}

@keyframes report360-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* === Backdrop === */
.report360-modal .report360-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* === Content Container === */
.report360-modal .report360-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
    width: 100%;
    border-radius: 20px;
    background: #1c1f28;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    animation: report360-scale-in 0.25s ease-out;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

@keyframes report360-scale-in {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* === Close Button === */
.report360-modal .report360-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.report360-modal .report360-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
}

/* === Body === */
.report360-modal .report360-body {
    padding: 32px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* === Icon === */
.report360-modal .report360-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.15), rgba(94, 92, 230, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #0A84FF;
}

/* === Title === */
.report360-modal .report360-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px;
}

/* === Address === */
.report360-modal .report360-address {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 14px;
    line-height: 1.3;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === Description === */
.report360-modal .report360-desc {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 18px;
}

/* === Price === */
.report360-modal .report360-price {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0A84FF, #5E5CE6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Auth Email (displayed for logged-in users instead of input) === */
.report360-modal .report360-auth-email {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 4px;
}

.report360-modal .report360-auth-email strong {
    color: #fff;
}

/* === Form === */
.report360-modal .report360-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report360-modal .report360-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
}

.report360-modal .report360-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s;
}

.report360-modal .report360-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.report360-modal .report360-input:focus {
    border-color: #0A84FF;
}

/* === Error === */
.report360-modal .report360-error {
    font-size: 12px;
    color: #FF453A;
    min-height: 16px;
    text-align: left;
}

/* === Submit Button === */
.report360-modal .report360-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0A84FF, #5E5CE6);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    margin-top: 4px;
}

.report360-modal .report360-submit:hover {
    opacity: 0.9;
}

.report360-modal .report360-submit:active {
    transform: scale(0.98);
}

.report360-modal .report360-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === Payment Container (YooKassa widget) === */
.report360-modal .report360-payment-container {
    width: 100%;
    min-height: 200px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
}

/* === Status === */
.report360-modal .report360-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 0;
}

/* ============================================
   Report 360 Button in Detail Card
   ============================================ */

.report360-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0A84FF, #5E5CE6);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    flex: 1;
    justify-content: center;
}

.report360-btn:hover {
    opacity: 0.9;
}

.report360-btn:active {
    transform: scale(0.97);
}

.report360-btn-icon {
    flex-shrink: 0;
}

/* ============================================
   Mobile (max-width: 767px)
   ============================================ */

@media (max-width: 767px) {
    .report360-modal {
        padding: 8px;
        align-items: flex-end;
    }

    .report360-modal .report360-content {
        max-width: 100%;
        border-radius: 20px 20px 12px 12px;
    }

    .report360-modal .report360-body {
        padding: 28px 20px 24px;
    }

    .report360-modal .report360-title {
        font-size: 18px;
    }

    .report360-modal .report360-price {
        font-size: 24px;
    }
}
