/**
 * Frontend Styles: Empresas Registration for Elementor
 */

.ere-form-container {
    box-sizing: border-box;
    width: 100%;
}

.ere-form-container *,
.ere-form-container *::before,
.ere-form-container *::after {
    box-sizing: border-box;
}

.ere-form-header {
    margin-bottom: 20px;
}

.ere-form-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a202c;
}

.ere-form-desc {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.5;
}

.ere-form-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.ere-form-col {
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
}

.ere-col-100 {
    flex: 0 0 100%;
    max-width: 100%;
}

.ere-col-50 {
    flex: 0 0 50%;
    max-width: 50%;
}

.ere-col-33 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

@media (max-width: 767px) {
    .ere-col-50,
    .ere-col-33 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.ere-form-row {
    margin-bottom: 18px;
}

.ere-field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.ere-required-mark {
    color: #e53e3e;
    margin-left: 3px;
    font-weight: bold;
}

.ere-input-field {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.5;
    color: #2d3748;
    background-color: #ffffff;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ere-input-field:focus {
    border-color: #3182ce;
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.ere-input-field::placeholder {
    color: #a0aec0;
    opacity: 1;
}

textarea.ere-input-field,
.ere-textarea {
    height: auto !important;
    min-height: 90px;
    resize: vertical;
}

/* Submit Button */
.ere-submit-wrapper {
    display: flex;
    margin-top: 10px;
}

.ere-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 6px;
    background-color: #2563eb;
    color: #ffffff;
    transition: all 0.25s ease-in-out;
    position: relative;
    user-select: none;
    text-decoration: none;
    text-align: center;
}

.ere-submit-btn:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}

.ere-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ere-btn-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ere-btn-icon svg,
.ere-btn-icon i {
    font-size: 1.1em;
    vertical-align: middle;
}

/* Button Sizes */
.ere-btn-size-xs { font-size: 12px; padding: 8px 16px; }
.ere-btn-size-sm { font-size: 13px; padding: 10px 20px; }
.ere-btn-size-md { font-size: 15px; padding: 13px 26px; }
.ere-btn-size-lg { font-size: 17px; padding: 16px 32px; }
.ere-btn-size-xl { font-size: 19px; padding: 20px 40px; }

/* Spinner */
.ere-btn-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: ere-spin 0.8s ease-in-out infinite;
    position: absolute;
}

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

/* Alert Notification Messages */
.ere-alert-msg {
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    animation: ere-fade-in 0.3s ease;
}

.ere-alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.ere-alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

@keyframes ere-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
