/* =========================================
   Grupo PlugSend - Frontend Forms
   ========================================= */

.wag-form-wrapper {
    max-width: 460px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
.wag-form-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    padding: 30px 30px 25px;
    text-align: center;
    color: white;
}

.wag-form-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.wag-form-icon svg {
    color: white;
}

.wag-form-header h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.wag-form-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

/* Form */
.wag-form {
    padding: 25px 30px 30px;
}

.wag-field {
    margin-bottom: 18px;
}

.wag-field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
}

.wag-required {
    color: #d9534f;
}

.wag-field input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
    background: #fafafa;
}

.wag-field input:focus {
    border-color: #25D366;
    background: white;
    box-shadow: 0 0 0 3px rgba(37,211,102,0.12);
}

.wag-field input::placeholder {
    color: #bbb;
}

/* Honeypot */
.wag-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Button */
.wag-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
}

.wag-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

.wag-btn:active {
    transform: translateY(0);
}

.wag-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wag-btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

/* Messages */
.wag-message {
    margin: 0 30px 25px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.wag-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wag-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wag-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.wag-message a {
    display: inline-block;
    margin-top: 10px;
    background: #25D366;
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.wag-message a:hover {
    background: #128C7E;
    color: white;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 520px) {
    .wag-form-wrapper {
        margin: 15px;
        border-radius: 12px;
    }

    .wag-form-header {
        padding: 25px 20px 20px;
    }

    .wag-form {
        padding: 20px;
    }

    .wag-message {
        margin: 0 20px 20px;
    }
}
