/* Zevonix Communications - Frontend Styles */

.vn-form-wrapper {
    --vn-brand: #13898F;
    --vn-brand-bg: #002147;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Card Layout */
.vn-layout-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 32px;
    max-width: 480px;
}

.vn-layout-card.vn-dark {
    background: var(--vn-brand-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Inline Layout */
.vn-layout-inline .vn-subscribe-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vn-layout-inline .vn-form-field {
    flex: 1;
    min-width: 180px;
    margin-bottom: 0;
}

.vn-layout-inline .vn-submit {
    flex: 0 0 auto;
}

/* Minimal Layout */
.vn-layout-minimal {
    padding: 0;
    border: none;
    background: transparent;
}

/* Header */
.vn-form-header {
    margin-bottom: 20px;
}

.vn-form-heading {
    font-size: 1.375rem;
    font-weight: 700;
    color: #002147;
    margin: 0 0 6px;
    line-height: 1.3;
}

.vn-dark .vn-form-heading {
    color: #ffffff;
}

.vn-form-desc {
    font-size: 0.9375rem;
    color: #384555;
    margin: 0;
    line-height: 1.5;
}

.vn-dark .vn-form-desc {
    color: rgba(255, 255, 255, 0.75);
}

/* Form Fields */
.vn-form-field {
    margin-bottom: 12px;
}

.vn-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.vn-dark .vn-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.vn-dark .vn-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.vn-input:focus {
    outline: none;
    border-color: var(--vn-brand);
    box-shadow: 0 0 0 2px rgba(19, 137, 143, 0.2);
}

/* Submit Button */
.vn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--vn-brand);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}

.vn-layout-inline .vn-submit {
    width: auto;
}

.vn-submit:hover {
    background: var(--vn-brand-bg);
}

.vn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.vn-submit-loading svg {
    animation: vn-spin 1s linear infinite;
}

@keyframes vn-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Turnstile */
.vn-turnstile {
    margin: 12px 0;
    display: flex;
    justify-content: center;
}

/* Messages */
.vn-form-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.vn-form-message.vn-success {
    background: rgba(19, 137, 143, 0.08);
    color: #0B6D73;
    border: 1px solid rgba(19, 137, 143, 0.2);
}

.vn-form-message.vn-error {
    background: rgba(211, 47, 47, 0.06);
    color: #d32f2f;
    border: 1px solid rgba(211, 47, 47, 0.15);
}

.vn-dark .vn-form-message.vn-success {
    background: rgba(19, 137, 143, 0.15);
    color: #1A9DA3;
}

/* Privacy note */
.vn-form-privacy {
    font-size: 0.75rem;
    color: #999;
    margin: 12px 0 0;
    text-align: center;
}

.vn-dark .vn-form-privacy {
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 480px) {
    .vn-layout-card {
        padding: 24px 20px;
    }

    .vn-layout-inline .vn-subscribe-form {
        flex-direction: column;
    }

    .vn-layout-inline .vn-submit {
        width: 100%;
    }
}
