/* TECHNOLED Rentals - Public Styles */
:root {
    --tlr-primary: #1bb0ce;
    --tlr-primary-dark: #158ca5;
    --tlr-text: #1a1a1a;
    --tlr-muted: #6b7280;
    --tlr-bg: #f7f9fb;
    --tlr-border: #e5e7eb;
    --tlr-success: #10b981;
    --tlr-error: #ef4444;
}

.tlr-rental-form {
    background: #fff;
    border: 1px solid var(--tlr-border);
    border-radius: 12px;
    padding: 32px;
    max-width: 720px;
    margin: 24px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--tlr-text);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.tlr-form-title {
    color: var(--tlr-primary);
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 700;
}

.tlr-form-row {
    margin-bottom: 20px;
}

.tlr-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.tlr-form-row input,
.tlr-form-row select,
.tlr-form-row textarea,
.tlr-customer input,
.tlr-customer textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--tlr-border);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color .15s;
    box-sizing: border-box;
}

.tlr-form-row input:focus,
.tlr-form-row select:focus,
.tlr-form-row textarea:focus,
.tlr-customer input:focus,
.tlr-customer textarea:focus {
    outline: none;
    border-color: var(--tlr-primary);
    box-shadow: 0 0 0 3px rgba(27,176,206,0.15);
}

.tlr-dates-row, .tlr-half-row {
    display: flex;
    gap: 16px;
}
.tlr-half {
    flex: 1;
}

.tlr-customer {
    border: 1px solid var(--tlr-border);
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
}
.tlr-customer legend {
    font-weight: 600;
    padding: 0 8px;
    color: var(--tlr-primary);
}
.tlr-customer label {
    display: block;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--tlr-muted);
}

.tlr-quote {
    background: var(--tlr-bg);
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    border-left: 4px solid var(--tlr-primary);
}
.tlr-quote h4 {
    margin: 0 0 12px;
    color: var(--tlr-primary);
}
.tlr-quote-table {
    width: 100%;
    border-collapse: collapse;
}
.tlr-quote-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--tlr-border);
}
.tlr-quote-table td:last-child {
    text-align: right;
    font-weight: 500;
}
.tlr-quote-table tr.tlr-total td {
    font-size: 18px;
    color: var(--tlr-text);
    padding-top: 12px;
}
.tlr-quote-table tr.tlr-deposit td {
    color: var(--tlr-primary);
    font-size: 17px;
}

.tlr-submit {
    width: 100%;
    background: var(--tlr-primary);
    color: #fff;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.tlr-submit:hover:not(:disabled) {
    background: var(--tlr-primary-dark);
}
.tlr-submit:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}
.tlr-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.tlr-message {
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: 6px;
    display: none;
}
.tlr-message.tlr-msg-error {
    display: block;
    background: #fef2f2;
    color: var(--tlr-error);
    border: 1px solid #fecaca;
}
.tlr-message.tlr-msg-success {
    display: block;
    background: #ecfdf5;
    color: var(--tlr-success);
    border: 1px solid #a7f3d0;
}

/* Catálogo */
.tlr-screens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin: 32px 0;
}
.tlr-screen-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform .2s, box-shadow .2s;
}
.tlr-screen-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.tlr-screen-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.tlr-screen-card h3 {
    margin: 16px 16px 8px;
    color: var(--tlr-text);
}
.tlr-screen-specs {
    list-style: none;
    padding: 0 16px;
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--tlr-muted);
}
.tlr-screen-specs li {
    margin: 4px 0;
}
.tlr-screen-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--tlr-primary);
    padding: 0 16px;
}
.tlr-screen-price span {
    font-size: 14px;
    color: var(--tlr-muted);
    font-weight: 400;
}
.tlr-btn-rent {
    display: block;
    background: var(--tlr-primary);
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 12px;
    margin: 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: background .15s;
}
.tlr-btn-rent:hover {
    background: var(--tlr-primary-dark);
    color: #fff;
}

/* Status check */
.tlr-status-check {
    max-width: 600px;
    margin: 24px auto;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--tlr-border);
    border-radius: 12px;
}
.tlr-status-check form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.tlr-status-check input, .tlr-status-check button {
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid var(--tlr-border);
    font-size: 14px;
}
.tlr-status-check button {
    background: var(--tlr-primary);
    color: #fff;
    border: none;
    cursor: pointer;
}
.tlr-error { color: var(--tlr-error); margin-top: 12px; }
.tlr-booking-summary {
    margin-top: 20px;
    padding: 16px;
    background: var(--tlr-bg);
    border-radius: 8px;
}
.tlr-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.tlr-status-pending   { background: #fef3c7; color: #92400e; }
.tlr-status-paid      { background: #dbeafe; color: #1e40af; }
.tlr-status-confirmed { background: #d1fae5; color: #065f46; }
.tlr-status-delivered { background: #e0e7ff; color: #3730a3; }
.tlr-status-completed { background: #d1fae5; color: #065f46; }
.tlr-status-cancelled { background: #fee2e2; color: #991b1b; }
.tlr-status-refunded  { background: #f3f4f6; color: #374151; }

@media (max-width: 640px) {
    .tlr-rental-form { padding: 20px; }
    .tlr-dates-row, .tlr-half-row { flex-direction: column; gap: 16px; }
}
