/* Event Registration Pro v1.1 - Enhanced Frontend Styles */
.erp-registration-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* High specificity selectors to override theme CSS */
.erp-registration-form .erp-form-field input[type="text"],
.erp-registration-form .erp-form-field input[type="email"],
.erp-registration-form .erp-form-field input[type="tel"],
.erp-registration-form .erp-form-field input[type="number"],
.erp-registration-form .erp-form-field input[type="date"],
.erp-registration-form .erp-form-field select,
.erp-registration-form .erp-form-field textarea {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    color: #333333 !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* Fix select dropdown with custom arrow */
.erp-registration-form .erp-form-field select {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"%3E%3Cpath fill="%23333" d="M6 9L1 4h10z"/%3E%3C/svg%3E') !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    padding-right: 35px !important;
    cursor: pointer !important;
}

/* Enhanced focus states */
.erp-registration-form .erp-form-field input:focus,
.erp-registration-form .erp-form-field select:focus,
.erp-registration-form .erp-form-field textarea:focus {
    outline: none !important;
    border-color: #0073aa !important;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1) !important;
    transform: translateY(-1px);
}

/* Beautiful submit button */
.erp-submit-button {
    padding: 14px 40px !important;
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.2) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.erp-submit-button:hover {
    background: linear-gradient(135deg, #005177 0%, #003d5c 100%) !important;
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* Loading Overlay */
.erp-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.3s ease-in;
}

.erp-loading-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease-out;
}

.erp-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

.erp-loading-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.erp-loading-subtext {
    font-size: 14px;
    color: #666;
}
