/* assets/frontend.css */
:root {
    --wa-primary: #25D366; /* WhatsApp Green */
    --wa-primary-hover: #1EBE5D;
    --wa-bg: #ffffff;
    --wa-text: #333333;
    --wa-border: #e0e0e0;
    --wa-focus: rgba(37, 211, 102, 0.25);
    --wa-shadow: 0 10px 40px rgba(0,0,0,0.08);
    --wa-radius: 16px;
    --wa-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.wa-widget-wrapper {
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
    background: var(--wa-bg);
    border-radius: var(--wa-radius);
    box-shadow: var(--wa-shadow);
    padding: 35px;
    max-width: 400px;
    margin: 40px auto;
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.wa-widget-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #128C7E, #25D366);
}

.wa-widget-header {
    text-align: center;
    margin-bottom: 25px;
}

.wa-widget-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--wa-text);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.wa-widget-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.wa-field-group {
    margin-bottom: 20px;
    position: relative;
}

.wa-field-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    transition: var(--wa-transition);
}

.wa-field-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    color: var(--wa-text);
    background: #f9fafb;
    border: 1px solid var(--wa-border);
    border-radius: 8px;
    transition: var(--wa-transition);
    box-sizing: border-box;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.wa-field-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--wa-primary);
    box-shadow: 0 0 0 4px var(--wa-focus);
}

.wa-submit-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    background: var(--wa-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--wa-transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
    margin-top: 10px;
}

.wa-submit-btn:hover:not(:disabled) {
    background: var(--wa-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.wa-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

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

.wa-submit-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.wa-form-response {
    margin-top: 20px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.wa-response-success {
    color: #155724;
    background: #d4edda;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    animation: fadeIn 0.4s ease;
}

.wa-response-error {
    color: #721c24;
    background: #f8d7da;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal and Trigger Button */
.wa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    backdrop-filter: blur(4px);
    opacity: 0;
    animation: fadeInModal 0.3s forwards;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wa-modal-overlay .wa-widget-wrapper {
    margin: 0;
    transform: scale(0.95);
    animation: scaleIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.wa-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.wa-modal-close:hover {
    color: #333;
}

.wa-contact-trigger-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--wa-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--wa-transition);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.wa-contact-trigger-btn:hover {
    background: var(--wa-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.wa-contact-trigger-inline {
    color: var(--wa-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--wa-transition);
}

.wa-contact-trigger-inline:hover {
    color: var(--wa-primary-hover);
}
