/* Moshav Citizens - Public Styles */
.mc-form-wrapper,
.mc-status-wrapper {
    max-width: 720px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: 'Heebo', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
}

.mc-form-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 25px;
}

.mc-form-header h2 {
    color: #2c7a3e;
    margin: 0 0 8px 0;
    font-size: 26px;
}

.mc-form-header p {
    color: #666;
    margin: 0;
}

/* שלבים */
.mc-step {
    display: none;
}

.mc-step.mc-step-active {
    display: block;
    animation: mcFadeIn 0.3s ease;
}

@keyframes mcFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mc-step h3 {
    color: #333;
    border-right: 4px solid #2c7a3e;
    padding-right: 12px;
    margin-bottom: 20px;
}

/* שדות */
.mc-field {
    margin-bottom: 18px;
}

.mc-field label {
    display: block;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    font-size: 16px;
}

.mc-required {
    color: #e53e3e;
}

.mc-field input[type="text"],
.mc-field input[type="email"],
.mc-field input[type="tel"],
.mc-field input[type="file"],
.mc-field select,
.mc-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.mc-field input:focus,
.mc-field select:focus,
.mc-field textarea:focus {
    outline: none;
    border-color: #2c7a3e;
    box-shadow: 0 0 0 3px rgba(44, 122, 62, 0.1);
}

.mc-field small {
    display: block;
    color: #6b7280;
    margin-top: 4px;
    font-size: 12px;
}

.mc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .mc-row {
        grid-template-columns: 1fr;
    }
}

/* כפתורים */
.mc-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.mc-btn-primary {
    background: #2c7a3e;
    color: #fff;
}

.mc-btn-primary:hover {
    background: #225f30;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 122, 62, 0.3);
}

.mc-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.mc-btn-secondary:hover {
    background: #e5e7eb;
}

.mc-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 10px;
}

/* הודעות */
.mc-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.mc-message.mc-error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border-right: 4px solid #ef4444;
}

.mc-message.mc-success {
    display: block;
    background: #f0fdf4;
    color: #166534;
    border-right: 4px solid #22c55e;
}

.mc-resident-info {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mc-check {
    background: #22c55e;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* הצלחה */
.mc-success {
    text-align: center;
    padding: 30px 20px;
}

.mc-success-icon {
    width: 60px;
    height: 60px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin: 0 auto 18px;
    animation: mcPop 0.4s ease;
}

@keyframes mcPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.mc-ticket-number {
    background: #2c7a3e;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 24px;
    font-weight: bold;
    display: inline-block;
    margin: 15px 0;
    letter-spacing: 2px;
}

/* טעינה */
.mc-loading {
    text-align: center;
    padding: 40px;
}

.mc-spinner {
    border: 4px solid #f3f4f6;
    border-top-color: #2c7a3e;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: mcSpin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes mcSpin {
    to { transform: rotate(360deg); }
}

/* תצוגת פניה - מעקב */
.mc-ticket-view {
    background: #fff;
}

.mc-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
}

.mc-label {
    color: #6b7280;
    font-size: 13px;
}

.mc-ticket-header h3 {
    margin: 4px 0 0;
    font-family: monospace;
    color: #2c7a3e;
}

.mc-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.mc-status-new { background: #3b82f6; }
.mc-status-in_progress { background: #f59e0b; }
.mc-status-pending { background: #8b5cf6; }
.mc-status-resolved { background: #10b981; }
.mc-status-closed { background: #6b7280; }
.mc-status-rejected { background: #ef4444; }

.mc-ticket-meta {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.mc-ticket-description {
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.mc-ticket-description strong {
    display: block;
    margin-bottom: 10px;
    color: #2c7a3e;
}

.mc-notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mc-note {
    background: #f9fafb;
    padding: 14px;
    border-radius: 8px;
    border-right: 3px solid #2563eb;
}

.mc-note-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.mc-note-date {
    color: #6b7280;
}

.mc-note-content {
    color: #374151;
    line-height: 1.6;
}

/* צ'קבוקס אישור פרסום */
.mc-consent-field {
    background: #f7faf8;
    border: 1px solid #e3ede7;
    border-radius: 8px;
    padding: 14px 16px;
}
.mc-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
    line-height: 1.5;
}
.mc-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    flex-shrink: 0;
    accent-color: #2c7a3e;
    cursor: pointer;
}
.mc-consent-field small {
    margin-top: 6px;
    margin-right: 30px;
}

/* Consent checkbox */
.mc-consent-field {
    background: #f7faf8;
    border: 1px solid #e3ede7;
    border-radius: 8px;
    padding: 14px 16px;
}
.mc-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500 !important;
    cursor: pointer;
    margin-bottom: 4px !important;
}
.mc-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex-shrink: 0;
    accent-color: #2c7a3e;
    cursor: pointer;
}
.mc-checkbox-label span {
    line-height: 1.5;
    color: #3a4a40;
}

/* Credit footer */
.mc-credit {
    text-align: center;
    color: #a8b3ad;
    font-size: 12px;
    margin: 22px 0 0;
    padding-top: 16px;
    border-top: 1px solid #eef1f0;
}
