/**
 * RAGO Gastro Offers Pool - Frontend Styles v1.2.3
 * 
 * - Color Theme: #04a6e5
 * - Pill-shaped buttons
 * - Lighter Placeholders
 * - Modal Close Fix
 * 
 * Namespace Studio | www.namespace-studio.com
 */

/* =====================================================================
   1. BUTTONS
   ===================================================================== */

body .rago-offer-btn-wrap {
    display: block !important;
    margin-top: 0px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    clear: both !important;
}

body .rago-checkout-btn-wrap {
    display: block !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    clear: both !important;
}

body .rago-offer-btn-wrap button#rago-cart-inquiry-btn,
body .rago-offer-btn-wrap button#rago-checkout-inquiry-btn,
body .rago-offer-btn-wrap .button.rago-inquiry-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 10px 30px !important;
    background-color: #3a3939 !important;
    color: #ffffff !important;
    border: 2px solid #1a1a2e !important;
    border-radius: 5px !important; 
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: none !important;
    position: relative !important;
    margin: 0 !important;
    gap: 10px !important;
}

body .rago-offer-btn-wrap button#rago-cart-inquiry-btn:hover,
body .rago-offer-btn-wrap button#rago-checkout-inquiry-btn:hover,
body .rago-offer-btn-wrap .button.rago-inquiry-trigger:hover {
    background-color: #272727 !important;
    /* BRAND COLOR #04a6e5 */
    color: #ffffff !important;
}

body .rago-offer-btn-wrap .rago-btn-svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    flex-shrink: 0 !important;
    stroke: currentColor !important;
    display: block !important;
}

body .rago-offer-btn-wrap .rago-btn-text strong {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

/* =====================================================================
   2. MODAL
   ===================================================================== */

#rago-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 9999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

#rago-modal-overlay[hidden] {
    display: none !important;
}

.rago-modal {
    background: #ffffff !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 520px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
}

/* Modal Close Button - FIXED CIRCLE SHAPE */
.rago-modal-close,
.rago-modal-close-final {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: #ffffff !important;
    
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important; 
    max-width: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    
    border-radius: 50% !important;  
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;  
    flex-shrink: 0 !important; 
    transition: background 0.2s !important;
    box-sizing: border-box !important;
}

.rago-modal-close:hover,
.rago-modal-close-final:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.rago-modal-close svg,
.rago-modal-close-final svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
}


/* Modal Header */
.rago-modal-header {
    background: #3a3939 !important;
    padding: 30px 25px 25px !important;
    color: #ffffff !important;
    text-align: center !important;
}

.rago-modal-logo {
    width: 44px !important;
    height: 44px !important;
    background: rgba(4, 166, 229, 0.15) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 15px !important;
}

.rago-modal-logo svg {
    width: 22px !important;
    height: 22px !important;
    stroke: #04a6e5 !important; /* BRAND COLOR */
    fill: none !important;
}

.rago-modal-title {
    margin: 0 !important;
    font-size: 20px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.rago-modal-subtitle {
    margin: 8px 0 0 !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Form Styles */
.rago-form {
    padding: 25px !important;
}

.rago-form-row {
    margin-bottom: 18px !important;
}

.rago-form-row--2col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
}

.rago-field label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    color: #4b5563 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.rago-field input, 
.rago-field textarea {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    background: #f9fafb !important;
    color: #111827 !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

/* LIGHTER PLACEHOLDER */
.rago-field input::placeholder,
.rago-field textarea::placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
    opacity: 0.7 !important;
}

.rago-field input:focus,
.rago-field textarea:focus {
    border-color: #04a6e5 !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(4, 166, 229, 0.1) !important;
}

/* Validation */
.rago-field input.rago-invalid,
.rago-field textarea.rago-invalid {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

.rago-field-error {
    display: block !important;
    color: #dc2626 !important;
    font-size: 11px !important;
    margin-top: 4px !important;
}

/* Submit Button */
.rago-submit-btn {
    width: 100% !important;
    background-color: #04a6e5 !important; /* BRAND COLOR */
    color: #ffffff !important;
    border: none !important;
    padding: 14px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.rago-submit-btn:hover {
    background-color: rgb(0,145,224) !important;
}

/* Success State */
.rago-modal-success {
    padding: 40px 25px !important;
    text-align: center !important;
}

.rago-success-icon {
    color: #16a34a !important;
    margin-bottom: 15px !important;
}

.rago-success-title {
    font-size: 22px !important;
    margin-bottom: 10px !important;
}

.rago-modal-close-final {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin: 20px auto 0 !important;
    background: #1a1a2e !important;
    width: auto !important;
    height: auto !important;
    padding: 10px 25px !important;
    border-radius: 50px !important;
}

/* Responsive */
@media (max-width: 480px) {
    .rago-form-row--2col {
        grid-template-columns: 1fr !important;
    }
}
