:root {
    --cf7-modal-backdrop: rgba(0, 0, 0, 0.8);
    --cf7-success: #2bb673;
    --cf7-error: #e6676b;
}

body.light-theme {
    --cf7-modal-backdrop: rgba(255, 255, 255, 0.8);
}

.wpcf7 .wpcf7-response-output {
    display: none !important;
}

.cf7-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.cf7-modal[aria-hidden="false"] {
    display: grid;
    place-items: center;
}

.cf7-modal-backdrop {
    position: absolute;
    inset: 0;
    background: var(--cf7-modal-backdrop);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cf7-modal-card {
    position: relative;
    background: var(--card-bg, #111111);
    border: 1px solid var(--border-color, #333333);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    width: min(92vw, 560px);
    max-width: 560px;
    padding: 32px 24px 28px;
    text-align: center;
    color: var(--text-primary, #ffffff);
    animation: cf7ModalFadeIn 0.3s ease-out forwards;
}

@keyframes cf7ModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cf7-modal-close {
    position: absolute;
    right: 16px;
    top: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: var(--text-secondary, #a0a0a0);
    cursor: pointer;
    transition: color 0.3s ease;
}

.cf7-modal-close:hover {
    color: var(--accent-color, #f97316);
}

.cf7-icon {
    width: 94px;
    height: 94px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
}

.cf7-title {
    font-size: 24px;
    font-weight: 700;
    margin: 8px 0 8px;
    color: var(--text-primary, #ffffff);
}

.cf7-message {
    font-size: 16px;
    color: var(--text-secondary, #a0a0a0);
    margin: 0;
    line-height: 1.5;
}

.cf7-modal.success .cf7-icon svg .circle,
.cf7-modal.success .cf7-icon svg .mark {
    stroke: var(--cf7-success);
}

.cf7-modal.error .cf7-icon svg .circle,
.cf7-modal.error .cf7-icon svg .mark {
    stroke: var(--cf7-error);
}

@media (max-width: 420px) {
    .cf7-modal-card {
        padding: 24px 18px;
    }
    .cf7-title {
        font-size: 20px;
    }
    .cf7-message {
        font-size: 15px;
    }
}
