/* ZipNet Contact - Frontend Styles */

.zn-contact-form-wrapper {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.zn-contact-form {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.zn-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 20px;
}

.zn-field {
    box-sizing: border-box;
}

.zn-width-100 { width: 100%; }
.zn-width-50  { width: calc(50% - 9px); }
.zn-width-33  { width: calc(33.333% - 12px); }

@media (max-width: 600px) {
    .zn-width-50,
    .zn-width-33 {
        width: 100%;
    }
}

.zn-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.zn-required {
    color: #ef4444;
}

.zn-field input[type="text"],
.zn-field input[type="email"],
.zn-field input[type="tel"],
.zn-field input[type="url"],
.zn-field input[type="number"],
.zn-field input[type="date"],
.zn-field select,
.zn-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.zn-field input:focus,
.zn-field select:focus,
.zn-field textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: #fff;
}

.zn-field textarea {
    resize: vertical;
    min-height: 100px;
}

.zn-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zn-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400 !important;
    cursor: pointer;
}

.zn-field-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 4px;
}

.zn-field.has-error input,
.zn-field.has-error select,
.zn-field.has-error textarea {
    border-color: #ef4444;
}

.zn-submit-wrap {
    margin-top: 8px;
}

.zn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.zn-btn-primary {
    background: #3b82f6;
    color: #fff;
}

.zn-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.zn-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.zn-spinner {
    animation: zn-spin 0.8s linear infinite;
}

@keyframes zn-spin {
    to { transform: rotate(360deg); }
}

.zn-messages {
    margin-top: 16px;
}

.zn-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.zn-message-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.zn-message-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.zn-recaptcha {
    margin-bottom: 12px;
}

.zn-help {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* Loading state */
.zn-contact-form.is-loading .zn-btn-text {
    display: none;
}
.zn-contact-form.is-loading .zn-btn-loading {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}
