/* Free Website Audit Popup */

.website-audit-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.website-audit-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.website-audit-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 2rem);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.website-audit-overlay.is-visible .website-audit-modal {
    transform: scale(1);
}

.website-audit-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: #f1f5f9;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.website-audit-close:hover {
    color: #1e293b;
    background: #e2e8f0;
}

.website-audit-content {
    padding: 2rem 2rem 2.5rem;
}

.website-audit-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.website-audit-subtitle {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.website-audit-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.website-audit-alert-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.website-audit-alert-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.website-audit-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.website-audit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.website-audit-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.website-audit-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

.website-audit-input,
.website-audit-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    color: #0f172a;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.website-audit-input:focus,
.website-audit-textarea:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.website-audit-input::placeholder,
.website-audit-textarea::placeholder {
    color: #94a3b8;
}

.website-audit-textarea {
    resize: vertical;
    min-height: 72px;
}

.website-audit-submit {
    margin-top: 0.25rem;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #0891b2;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
}

.website-audit-submit:hover {
    background: #0e7490;
}

.website-audit-submit:active {
    transform: scale(0.98);
}

@media (max-width: 480px) {
    .website-audit-row {
        grid-template-columns: 1fr;
    }
}
