.wpo-subscribe-form {
max-width: 400px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
.wpo-subscribe-form * {
box-sizing: border-box;
} .wpo-form {
display: flex;
flex-direction: column;
gap: 12px;
} .wpo-form-field {
display: flex;
flex-direction: column;
} .wpo-form-input {
width: 100%;
padding: 12px 16px;
font-size: 15px;
line-height: 1.5;
color: #1e293b;
background-color: #fff;
border: 1px solid #e2e8f0;
border-radius: 8px;
transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wpo-form-input:focus {
outline: none;
border-color: #6366f1;
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.wpo-form-input::placeholder {
color: #94a3b8;
} .wpo-form-button {
width: 100%;
padding: 12px 24px;
font-size: 15px;
font-weight: 600;
line-height: 1.5;
color: #fff;
background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
border: none;
border-radius: 8px;
cursor: pointer;
transition: transform 0.15s ease, box-shadow 0.15s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.wpo-form-button:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}
.wpo-form-button:active {
transform: translateY(0);
}
.wpo-form-button:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
} .wpo-spinner {
width: 18px;
height: 18px;
animation: wpo-spin 1s linear infinite;
}
@keyframes wpo-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
} .wpo-form-message {
padding: 12px 16px;
border-radius: 8px;
font-size: 14px;
line-height: 1.5;
}
.wpo-form-message.wpo-success {
background-color: #ecfdf5;
color: #047857;
border: 1px solid #a7f3d0;
}
.wpo-form-message.wpo-error {
background-color: #fef2f2;
color: #dc2626;
border: 1px solid #fecaca;
} .wpo-radio-group {
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 8px;
}
.wpo-radio-label {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 8px;
cursor: pointer;
transition: border-color 0.15s ease, background-color 0.15s ease;
}
.wpo-radio-label:hover {
border-color: #cbd5e1;
background: #f1f5f9;
}
.wpo-radio-label input[type="radio"] {
width: 18px;
height: 18px;
margin: 0;
accent-color: #6366f1;
}
.wpo-radio-label span {
font-size: 14px;
color: #334155;
} .wpo-hp-field {
position: absolute;
left: -9999px;
opacity: 0;
pointer-events: none;
} .wpo-subscribe-form.wpo-inline .wpo-form {
flex-direction: row;
flex-wrap: wrap;
gap: 8px;
}
.wpo-subscribe-form.wpo-inline .wpo-form-field {
flex: 1;
min-width: 200px;
}
.wpo-subscribe-form.wpo-inline .wpo-form-field:has(.wpo-form-button) {
flex: 0 0 auto;
min-width: auto;
} .wpo-post-subscribe-form {
background: #f8fafc;
padding: 20px;
border-radius: 12px;
border: 1px solid #e2e8f0;
} @media (prefers-color-scheme: dark) {
.wpo-subscribe-form {
color: #f1f5f9;
}
.wpo-form-input {
background-color: #1e293b;
border-color: #334155;
color: #f1f5f9;
}
.wpo-form-input:focus {
border-color: #818cf8;
box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}
.wpo-form-input::placeholder {
color: #64748b;
}
.wpo-radio-label {
background: #1e293b;
border-color: #334155;
}
.wpo-radio-label:hover {
border-color: #475569;
background: #334155;
}
.wpo-radio-label span {
color: #e2e8f0;
}
.wpo-post-subscribe-form {
background: #0f172a;
border-color: #1e293b;
}
.wpo-form-message.wpo-success {
background-color: #064e3b;
color: #6ee7b7;
border-color: #047857;
}
.wpo-form-message.wpo-error {
background-color: #7f1d1d;
color: #fca5a5;
border-color: #dc2626;
}
}