.pm-inscricao-wrapper {
    max-width: 800px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pm-inscricao-form .pm-inscricao-bloco {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 20px;
}

.pm-inscricao-form .pm-inscricao-bloco legend {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 0 10px;
    margin-bottom: 15px;
}

.pm-field {
    margin-bottom: 15px;
}

.pm-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.pm-field .required {
    color: #dc3232;
}

.pm-field input[type="text"],
.pm-field input[type="email"],
.pm-field input[type="tel"],
.pm-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    text-transform: uppercase;
}

.pm-field input[type="date"],
.pm-field input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.pm-field input:focus,
.pm-field select:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}

.pm-field-half {
    display: inline-block;
    width: 48%;
    margin-right: 2%;
    vertical-align: top;
}

.pm-field-half:nth-child(even) {
    margin-right: 0;
}

.pm-field-third {
    display: inline-block;
    width: 31%;
    margin-right: 2%;
    vertical-align: top;
}

.pm-field-third:nth-child(3n) {
    margin-right: 0;
}

.pm-radio-label {
    display: inline-block;
    margin-right: 20px;
    font-weight: 400;
}

.pm-radio-label input[type="radio"],
.pm-radio-label input[type="checkbox"] {
    margin-right: 5px;
}

.pm-checkbox-field label {
    font-weight: 400;
    cursor: pointer;
}

.pm-submit-wrap {
    text-align: center;
    margin-top: 25px;
}

.pm-btn-submit {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.pm-btn-submit:hover {
    background: #005a87;
}

.pm-btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Error States */
.pm-field.pm-has-error input,
.pm-field.pm-has-error select {
    border-color: #dc3232;
    background: #fff8f8;
}

.pm-field.pm-has-error input:focus,
.pm-field.pm-has-error select:focus {
    border-color: #dc3232;
    box-shadow: 0 0 0 1px #dc3232;
}

.pm-field-error {
    display: none;
    color: #dc3232;
    font-size: 13px;
    margin-top: 5px;
    line-height: 1.4;
}

.pm-has-error .pm-field-error {
    display: block;
}

.pm-inscricao-bloco.pm-bloco-error {
    border-color: #dc3232;
    background: #fffcfc;
}

/* CEP Loading */
.pm-cep-loading {
    display: inline-block;
    margin-left: 8px;
    font-size: 13px;
    color: #007cba;
    font-weight: 500;
}

.pm-cep-loading::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    border: 2px solid #007cba;
    border-top-color: transparent;
    border-radius: 50%;
    animation: pm-spin 0.6s linear infinite;
    vertical-align: middle;
}

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

.pm-inscricao-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    font-weight: 500;
}

.pm-inscricao-message.success {
    background: #ecf7ed;
    border: 1px solid #46b450;
    color: #2c6b2f;
}

.pm-inscricao-message.error {
    background: #fbeaea;
    border: 1px solid #dc3232;
    color: #8a1f1f;
}

/* Admin Styles */

.pm-inscricoes-admin h1 {
    margin-bottom: 20px;
}

.pm-inscricoes-search {
    margin: 15px 0;
}

.pm-inscricoes-search input[type="search"] {
    width: 300px;
    padding: 5px 10px;
}

.pm-inscricoes-table th {
    white-space: nowrap;
}

.pm-inscricao-date {
    color: #666;
    font-size: 13px;
    margin-left: auto;
}

.pm-inscricao-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .pm-inscricao-detail-grid {
        grid-template-columns: 1fr;
    }

    .pm-field-half,
    .pm-field-third {
        width: 100%;
        margin-right: 0;
    }
}

.pm-inscricao-bloco-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
}

.pm-inscricao-bloco-card h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #23282d;
}

.pm-inscricao-bloco-card table td {
    padding: 8px 12px;
}

.pm-inscricao-bloco-card table td:first-child {
    width: 40%;
    color: #555;
}

.pm-empty {
    color: #bbb;
}

/* Success Modal */
.pm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.pm-modal-header {
    background: #46b450;
    color: #fff;
    padding: 20px 25px;
    border-radius: 8px 8px 0 0;
}

.pm-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}

.pm-modal-body {
    padding: 25px;
}

.pm-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    text-align: center;
}

.pm-btn-print,
.pm-btn-close-modal {
    padding: 10px 24px;
    font-size: 15px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    margin: 0 5px;
}

.pm-btn-print {
    background: #007cba;
    color: #fff;
}

.pm-btn-print:hover {
    background: #005a87;
}

.pm-btn-close-modal {
    background: #f1f1f1;
    color: #333;
}

.pm-btn-close-modal:hover {
    background: #ddd;
}

/* Receipt */
.pm-receipt {
    font-family: monospace, sans-serif;
}

.pm-receipt h3 {
    margin: 0 0 5px;
    font-size: 18px;
    text-align: center;
}

.pm-receipt-subtitle {
    text-align: center;
    color: #666;
    margin: 0 0 20px;
    font-size: 14px;
}

.pm-receipt-table {
    width: 100%;
    border-collapse: collapse;
}

.pm-receipt-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.pm-receipt-table td:first-child {
    white-space: nowrap;
    width: 40%;
    color: #555;
}

.pm-validacao-code {
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 1px;
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    #pm-inscricao-modal,
    #pm-inscricao-modal * {
        visibility: visible;
    }
    #pm-inscricao-modal {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        background: none;
        display: block !important;
    }
    .pm-modal-content {
        max-width: 100%;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }
    .pm-modal-header {
        border-radius: 0;
    }
    .pm-modal-footer {
        display: none;
    }
    .pm-modal-overlay {
        background: none;
        position: absolute;
        align-items: flex-start;
    }
}
