/* WP WhatsApp Submit Styles - VERSION 1.0.5 */
/* NO BACKGROUND - FORM SAHAJA DEPAN */

/* Modal utama - NO BACKGROUND */
.wpws-modal.modal {
    background-color: transparent !important;
    z-index: 999999 !important;
    pointer-events: none; /* Allow clicks through modal area */
}

/* Modal dialog - ONLY THIS IS VISIBLE */
.wpws-modal .modal-dialog {
    pointer-events: auto; /* Enable clicks only on dialog */
    z-index: 1000000 !important;
    margin: 20px auto;
    max-width: 500px;
    animation: slideDown 0.3s ease-out;
}

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

/* Modal content - CLEAN DESIGN */
.wpws-modal .modal-content {
    border-radius: 12px;
    overflow: hidden;
    font-family: inherit;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0,0,0,0.08);
    background: white;
}

/* Modal Header */
.wpws-modal .modal-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
    position: relative;
}

.wpws-modal .modal-title {
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0;
}

.wpws-modal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    width: 24px;
    height: 24px;
    background-size: 12px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 5px;
}

.wpws-modal .btn-close:hover {
    opacity: 1;
    background-color: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Modal Body */
.wpws-modal .modal-body {
    padding: 1.8rem 1.5rem;
    background: #fff;
}

/* Form Elements */
.wpws-modal .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.6rem;
    display: block;
    font-size: 0.95rem;
}

.wpws-modal .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    height: auto;
}

.wpws-modal .form-control:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
    outline: none;
    background: #fff;
}

.wpws-modal textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Modal Footer */
.wpws-modal .modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 1.5rem;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* BUTTON PINK "HANTAR KE WHATSAPP" */
.wpws-submit-btn {
    background: linear-gradient(135deg, #ff2377 0%, #ff4d94 100%);
    border: none;
    color: white;
    padding: 1.1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 35, 119, 0.3);
}

.wpws-submit-btn:hover {
    background: linear-gradient(135deg, #e61e6b 0%, #ff3d8a 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 35, 119, 0.4);
}

.wpws-submit-btn:disabled {
    background: linear-gradient(135deg, #cccccc 0%, #aaaaaa 100%);
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Loading Animation */
.wpws-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

/* Message Area */
.wpws-message {
    margin-top: 1.2rem;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    display: none;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

.wpws-message.success {
    background: linear-gradient(135deg, #d4ffdf 0%, #b5f7c5 100%);
    color: #155724;
    border: 2px solid #c3e6cb;
    display: block;
}

.wpws-message.error {
    background: linear-gradient(135deg, #ffeaea 0%, #ffd6d6 100%);
    color: #721c24;
    border: 2px solid #f5c6cb;
    display: block;
}

/* Required field indicator */
.wpws-modal .form-label::after {
    content: ' *';
    color: #ff2377;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wpws-modal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .wpws-modal .modal-content {
        border-radius: 10px;
    }
    
    .wpws-modal .modal-header {
        padding: 1.2rem 1rem;
    }
    
    .wpws-modal .modal-title {
        font-size: 1.2rem;
    }
    
    .wpws-modal .modal-body {
        padding: 1.5rem 1rem;
    }
    
    .wpws-modal .form-control {
        padding: 0.75rem 0.9rem;
    }
    
    .wpws-modal .modal-footer {
        padding: 1.2rem 1rem;
    }
    
    .wpws-submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 52px;
    }
}

@media (max-width: 576px) {
    .wpws-modal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .wpws-modal .modal-header {
        padding: 1rem 0.8rem;
    }
    
    .wpws-modal .modal-body {
        padding: 1.2rem 0.8rem;
    }
    
    .wpws-modal .modal-footer {
        padding: 1rem 0.8rem;
    }
    
    .wpws-submit-btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
}

/* Print styles - hide modal */
@media print {
    .wpws-modal {
        display: none !important;
    }
}