.content-gate-container {
    max-width: 480px;
    margin: 4rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    font-family: var(--wp--preset--font-family--inter, sans-serif);
}

.content-gate-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.content-gate-description {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.cg-tabs {
    display: flex;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.cg-tab-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.cg-tab-btn.active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cg-form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.cg-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.cg-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cg-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cg-submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1rem;
}

.cg-submit-btn:hover {
    background: #1f2937;
}

.cg-divider {
    margin: 1.5rem 0;
    position: relative;
    text-align: center;
}

.cg-divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e5e7eb;
}

.cg-divider span {
    background: #fff;
    padding: 0 10px;
    color: #9ca3af;
    font-size: 0.875rem;
    position: relative;
}

.cg-footer-links {
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.cg-footer-links a {
    color: #6b7280;
    text-decoration: none;
}

.cg-footer-links a:hover {
    color: #111827;
    text-decoration: underline;
}

/* Dark Mode Support */
.is-style-dark .content-gate-container {
    background: #1f2937;
    color: #f9fafb;
}

.is-style-dark .content-gate-title {
    color: #f9fafb;
}

.is-style-dark .content-gate-description {
    color: #9ca3af;
}

.is-style-dark .cg-tabs {
    background: #374151;
}

.is-style-dark .cg-tab-btn {
    color: #9ca3af;
}

.is-style-dark .cg-tab-btn.active {
    background: #4b5563;
    color: #fff;
}

.is-style-dark .cg-label {
    color: #d1d5db;
}

.is-style-dark .cg-input {
    background: #374151;
    border-color: #4b5563;
    color: #fff;
}

.is-style-dark .cg-input:focus {
    border-color: #60a5fa;
}

.is-style-dark .cg-submit-btn {
    background: #fff;
    color: #111827;
}

.is-style-dark .cg-submit-btn:hover {
    background: #f3f4f6;
}

.is-style-dark .cg-divider::before {
    background: #374151;
}

.is-style-dark .cg-divider span {
    background: #1f2937;
    color: #6b7280;
}

/* Name Collection Modal */
.cg-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cg-modal-fade-in 0.3s ease;
}

.cg-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cg-modal-content {
    position: relative;
    max-width: 420px;
    width: 90%;
    margin: 1rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: cg-modal-slide-up 0.3s ease;
}

.cg-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #111827;
}

.cg-modal-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.cg-modal .cg-form {
    text-align: left;
}

.cg-modal-closing {
    animation: cg-modal-fade-out 0.3s ease forwards;
}

.cg-modal-closing .cg-modal-content {
    animation: cg-modal-slide-down 0.3s ease forwards;
}

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

@keyframes cg-modal-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes cg-modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cg-modal-slide-down {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Dark Mode Support for Modal */
.is-style-dark .cg-modal-content,
[data-theme="dark"] .cg-modal-content {
    background: #1f2937;
}

.is-style-dark .cg-modal-title,
[data-theme="dark"] .cg-modal-title {
    color: #f9fafb;
}

.is-style-dark .cg-modal-description,
[data-theme="dark"] .cg-modal-description {
    color: #9ca3af;
}
