/* =========================================================
   ZABANE ABI — GUARANTEE.CSS
   v1.4.0 — Guarantee registration form styles
   ========================================================= */

/* ============== LAYOUT: 2-column (form + info) ============== */
.za-guarantee-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* ============== FORM WRAP ============== */
.za-guarantee-form-wrap {
    padding: 2rem;
}

.za-guarantee-form {
    width: 100%;
}

/* ============== 2-COLUMN FORM GRID ============== */
.za-guarantee-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
}

.za-guarantee-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ============== FORM FIELDS ============== */
.za-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.za-form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.za-required {
    color: #ef4444;
    font-weight: 700;
}

.za-form-input {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--hair);
    border-radius: var(--radius-sm);
    padding: 0.625rem 0.875rem;
    color: var(--ink);
    font-size: 0.875rem;
    font-family: var(--sans-fa);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.za-form-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(22, 210, 212, 0.1);
}

.za-form-input::placeholder {
    color: var(--muted-2);
    opacity: 0.7;
}

textarea.za-form-input {
    resize: vertical;
    min-height: 80px;
    font-family: var(--sans-fa);
}

select.za-form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239BA3AE' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    padding-inline-start: 2rem;
}

/* ============== RADIO GROUP ============== */
.za-radio-group {
    display: flex;
    gap: 0.75rem;
}

.za-radio {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--hair);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--muted);
    transition: all 0.2s;
    flex: 1;
    justify-content: center;
}

.za-radio:hover {
    border-color: rgba(22, 210, 212, 0.3);
    color: var(--ink);
}

.za-radio input[type="radio"] {
    accent-color: var(--teal);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.za-radio input[type="radio"]:checked + span {
    color: var(--teal);
    font-weight: 600;
}

.za-radio:has(input:checked) {
    border-color: var(--teal);
    background: rgba(22, 210, 212, 0.05);
}

/* ============== SUBMIT BUTTON ============== */
.za-guarantee-submit {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
}

.za-guarantee-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============== FORM NOTE ============== */
.za-form-note {
    background: rgba(255, 172, 32, 0.05);
    border: 1px solid rgba(255, 172, 32, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    line-height: 1.7;
}

/* ============== INFO PANEL (right side) ============== */
.za-guarantee-info {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(22, 210, 212, 0.04), rgba(30, 196, 255, 0.02));
    border: 1px solid rgba(22, 210, 212, 0.15);
    border-radius: var(--radius);
    position: sticky;
    top: 6rem;
}

.za-guarantee-illustration {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.za-guarantee-illustration-svg {
    width: 100%;
    height: 100%;
    animation: za-guarantee-float 6s ease-in-out infinite;
}

@keyframes za-guarantee-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.za-guarantee-features {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
}

.za-guarantee-feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: var(--ink);
}

.za-guarantee-feature svg {
    flex-shrink: 0;
    background: rgba(22, 210, 212, 0.1);
    border-radius: 50%;
    padding: 2px;
}

/* ============== ALERT BOX ============== */
.za-guarantee-alert {
    display: flex;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 172, 32, 0.08);
    border: 1px solid rgba(255, 172, 32, 0.25);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.7;
}

.za-guarantee-alert svg {
    color: var(--amber);
    flex-shrink: 0;
}

.za-guarantee-alert strong {
    color: var(--amber);
    display: inline-block;
    margin-inline-end: 0.25rem;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 900px) {
    .za-guarantee-layout {
        grid-template-columns: 1fr;
    }
    .za-guarantee-info {
        position: static;
    }
}

@media (max-width: 600px) {
    .za-guarantee-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .za-guarantee-form-wrap,
    .za-guarantee-info {
        padding: 1.5rem;
    }
    .za-radio-group {
        flex-direction: column;
    }
}

/* ============== ADMIN: Guarantee list columns ============== */
.admin-column-guarantee {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-guarantee-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.admin-guarantee-status--active {
    background: #d1fae5;
    color: #065f46;
}

.admin-guarantee-status--pending {
    background: #fef3c7;
    color: #92400e;
}

.admin-guarantee-status--used {
    background: #dbeafe;
    color: #1e40af;
}

.admin-guarantee-status--expired {
    background: #fee2e2;
    color: #991b1b;
}

/* ============== ADMIN: Reports page ============== */
.za-admin-reports-wrap {
    padding: 20px;
}

.za-admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.za-admin-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.za-admin-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.za-admin-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.za-admin-stat-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.za-admin-filters {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.za-admin-filters label {
    font-size: 0.75rem;
    color: #6b7280;
    display: block;
    margin-bottom: 4px;
}

.za-admin-filters select,
.za-admin-filters input {
    min-width: 150px;
}

.za-admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.za-admin-table th {
    background: #f9fafb;
    padding: 12px;
    text-align: right;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
}

.za-admin-table td {
    padding: 12px;
    font-size: 0.8125rem;
    color: #111827;
    border-bottom: 1px solid #f3f4f6;
}

.za-admin-table tr:hover {
    background: #f9fafb;
}

.za-admin-activity-bar {
    display: inline-block;
    width: 80px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    vertical-align: middle;
    margin-inline-end: 6px;
}

.za-admin-activity-bar > div {
    height: 100%;
    background: linear-gradient(90deg, #16D2D4, #1ec4ff);
    border-radius: 3px;
}
