.cf7sr-content * {
    box-sizing: border-box;
}

.cf7sr-content {
    color: #3c434a;
}

.cf7sr-content p,
.cf7sr-content li {
    margin-bottom: 15px;
}

.cf7sr-settings {
    padding-top: 10px;
}

.cf7sr-content .cf7sr-settings textarea {
    width: 100%;
    max-width: 1000px;
}

.cf7sr-content .cf7sr-settings input[type="text"],
.cf7sr-content .cf7sr-settings input[type="password"] {
    width: 100%;
    max-width: 1000px;
}

.cf7sr-content .cf7sr-settings select {
    max-width: 100%;
}

.cf7sr-content .cf7sr-generate {
    margin-top: 30px;
}

.cf7sr-content .cf7sr-generate img {
    border: 1px solid #444;
}

.cf7sr-content .cf7sr-row {
    margin-bottom: 20px;
}

.cf7sr-content .cf7sr-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.cf7sr-content .cf7sr-msg,
.cf7sr-content .cf7sr-title {
    padding: 0.75rem 1.25rem;
    margin-top: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.cf7sr-content .cf7sr-info-msg {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.cf7sr-content .cf7sr-success-msg {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.cf7sr-content .cf7sr-warning-msg {
    color: #856404;
    background-color: #fff8e5;
    border-color: #ffeeba;
    border-left: 4px solid #ffb900;
}

.cf7sr-content .cf7sr-danger-msg {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.cf7sr-content .cf7sr-inline {
    display: inline-block !important;
}

.cf7sr-content .submissions {
    margin-top: 20px;
}

.cf7sr-error {
    border: 1px solid #D8000C !important;
}

.cf7sr-go-pro {
    background: #fff;
    border: 1px solid #e5e5e5;
    margin-bottom: 20px;
    margin-top: 20px;
    padding: 20px;
}

.cf7sr-go-pro h3 {
    color: #444;
    margin-top: 0;
    font-size: 16px;
    font-weight: 700;
}

.cf7sr-go-pro ul li {
    margin: 0;
    padding: 0 0 10px 15px;
    font-size: 14px;
    position: relative;
}

.cf7sr-go-pro ul li:before {
    content: "+";
    position: absolute;
    top: -1px;
    left: 0;
}

.cf7sr-stats {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: stretch;
    margin: 20px 0;
    max-width: 1650px;
}

.cf7sr-stats-dashboard {
    flex: 1;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cf7sr-stats-dashboard h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3em;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cf7sr-stats-dashboard h2 .dashicons {
    color: #2271b1;
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.cf7sr-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cf7sr-stat-card {
    background: #f9f9f9;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cf7sr-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

.cf7sr-stat-primary {
    border-color: #2271b1;
    background: linear-gradient(135deg, #f0f6ff 0%, #ffffff 100%);
}

.cf7sr-stat-success {
    border-color: #00a32a;
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
}

.cf7sr-stat-info {
    border-color: #f0b849;
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
}

.cf7sr-stat-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf7sr-stat-primary .cf7sr-stat-icon {
    background: #2271b1;
}

.cf7sr-stat-success .cf7sr-stat-icon {
    background: #00a32a;
}

.cf7sr-stat-info .cf7sr-stat-icon {
    background: #f0b849;
}

.cf7sr-stat-icon .dashicons {
    color: #fff;
    font-size: 26px;
    width: 26px;
    height: 26px;
}

.cf7sr-stat-content {
    flex: 1;
}

.cf7sr-stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    color: #1d2327;
}

.cf7sr-stat-label {
    font-size: 13px;
    color: #646970;
    font-weight: 500;
}

.cf7sr-stats-breakdown {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.cf7sr-stats-breakdown h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #1d2327;
}

.cf7sr-captcha-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cf7sr-captcha-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.cf7sr-captcha-stat:hover {
    background: #f0f0f1;
}

.cf7sr-captcha-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1d2327;
}

.cf7sr-captcha-label .dashicons {
    color: #646970;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.cf7sr-captcha-count {
    font-size: 16px;
    font-weight: 600;
    color: #2271b1;
    min-width: 40px;
    text-align: right;
}

.cf7sr-stats-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.cf7sr-stats-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cf7sr-stats-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

@media screen and (max-width: 782px) {
    .cf7sr-stats-grid {
        grid-template-columns: 1fr;
    }

    .cf7sr-stat-value {
        font-size: 28px;
    }

    .cf7sr-related-content {
        flex-direction: column;
    }
}

.cf7sr-upgrade-banner {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    border: 1px solid #e5e7eb;
}

.cf7sr-upgrade-banner .cf7sr-upgrade-container {
    position: relative;
    z-index: 1;
    padding: 50px 40px;
}

.cf7sr-upgrade-banner .cf7sr-header {
    text-align: center;
    margin-bottom: 50px;
}

.cf7sr-upgrade-banner .cf7sr-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.cf7sr-upgrade-banner .cf7sr-header h2 span {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #2271b1;
}

.cf7sr-upgrade-banner .cf7sr-badge {
    display: inline-block;
    padding: 8px 20px;
    background: #dbeafe;
    border-radius: 50px;
    margin-bottom: 20px;
}

.cf7sr-upgrade-banner .cf7sr-badge span {
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cf7sr-upgrade-banner .cf7sr-title {
    color: #1e293b;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.cf7sr-upgrade-banner .cf7sr-subtitle {
    color: #64748b;
    font-size: 18px;
    margin: 0 auto 32px auto;
    max-width: 650px;
    line-height: 1.6;
}

.cf7sr-upgrade-banner .cf7sr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.cf7sr-upgrade-banner .cf7sr-feature-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.cf7sr-upgrade-banner .cf7sr-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.cf7sr-upgrade-banner .cf7sr-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.cf7sr-upgrade-banner .cf7sr-card-title {
    color: #1e293b;
    margin: 0 0 12px 0;
}

.cf7sr-upgrade-banner .cf7sr-card-text {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.cf7sr-upgrade-banner .cf7sr-list {
    list-style: circle;
    padding-left: 15px;
    margin: 0;
    color: #475569;
    font-size: 14px;
}

.cf7sr-upgrade-banner .cf7sr-cta-section {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
}

.cf7sr-upgrade-banner .cf7sr-btn-large {
    display: inline-block;
    background: #2563eb;
    color: #fff !important;
    padding: 18px 56px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cf7sr-upgrade-banner .cf7sr-btn-large:hover {
    background: #1d4ed8;
    transform: scale(1.02);
}

.cf7sr-upgrade-banner a.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
}

.cf7sr-upgrade-banner > div > div:nth-child(2) > div {
    transition: all 0.3s ease;
}

.cf7sr-upgrade-banner > div > div:nth-child(2) > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

@media (max-width: 768px) {
    .cf7sr-upgrade-banner > div {
        padding: 40px 24px !important;
    }

    .cf7sr-upgrade-banner h2 {
        font-size: 28px !important;
    }

    .cf7sr-upgrade-banner > div > div:nth-child(2) {
        grid-template-columns: 1fr !important;
    }

    .cf7sr-upgrade-banner a.button {
        display: block !important;
        margin: 10px 0 !important;
        width: 100%;
    }

    .cf7sr-upgrade-banner > div > div:nth-child(3) > div:nth-child(2) {
        gap: 30px !important;
    }
}

@media (max-width: 1200px) {
    .cf7sr-stats {
        flex-direction: column;
    }

    .cf7sr-stats .cf7sr-stats-dashboard, .cf7sr-stats .cf7sr-upgrade-banner {
        width: 100%;
    }
}
