/**
 * Estilos Frontend do Workshop Manager (Formulário e Minha Conta)
 */

.wm-form-container {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
}

.wm-form-container * {
    box-sizing: border-box;
}

.wm-form-header {
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

.wm-form-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.wm-workshop-summary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.wm-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
}

.wm-pill-date {
    background-color: #f1f5f9;
    color: #334155;
}

.wm-pill-price {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.wm-pill-urgent {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    animation: wm-pulse 2s infinite;
}

@keyframes wm-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

.wm-field {
    margin-bottom: 16px;
}

.wm-field-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.wm-field-half {
    flex: 1;
}

.wm-field label,
.wm-field-half label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.wm-field label .required,
.wm-field-half label .required {
    color: #ef4444;
}

.wm-field input,
.wm-field textarea,
.wm-field-half input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.2s ease-in-out;
}

.wm-field input:focus,
.wm-field textarea:focus,
.wm-field-half input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.wm-btn-submit {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #2563eb;
    color: #ffffff !important;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.wm-btn-submit:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.wm-btn-submit:active {
    transform: translateY(0);
}

.wm-btn-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.wm-btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: wm-spin 0.7s linear infinite;
}

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

.wm-payment-notice {
    text-align: center;
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
}

/* Alertas e Mensagens */
.wm-alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.wm-alert-soldout {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    display: flex;
    align-items: center;
    gap: 14px;
}

.wm-alert-icon {
    font-size: 28px;
}

.wm-alert-title {
    margin: 0 0 4px 0;
    color: #991b1b;
    font-size: 16px;
    font-weight: 700;
}

.wm-alert-desc {
    margin: 0;
    color: #7f1d1d;
    font-size: 14px;
}

.wm-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-size: 14px;
}

.wm-success-message {
    text-align: center;
    padding: 30px 15px;
}

.wm-success-icon {
    width: 54px;
    height: 54px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
    margin: 0 auto 16px auto;
}

.wm-success-message h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #0f172a;
}

.wm-success-message p {
    color: #475569;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.wm-success-note {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px !important;
    color: #64748b !important;
}

/* Tabela Minha Conta */
.wm-my-account-wrap {
    margin-top: 10px;
}

.wm-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px;
}

.wm-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.wm-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.wm-status-pending {
    background: #fef3c7;
    color: #92400e;
}
.wm-status-pending .wm-status-dot {
    background: #d97706;
}

.wm-status-confirmed {
    background: #dcfce7;
    color: #166534;
}
.wm-status-confirmed .wm-status-dot {
    background: #16a34a;
}

.wm-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}
.wm-status-cancelled .wm-status-dot {
    background: #dc2626;
}

@media (max-width: 600px) {
    .wm-field-row {
        flex-direction: column;
        gap: 0;
    }
}
