/* Container Styling */
.mediation-container {
    width: 100%; 
    max-width: 1200px;
    margin: 0 auto; 
    padding: 20px 15px 80px 15px; /* Add extra bottom padding */
    border-radius: 10px;
    display: block;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

/* Tenant Header Card */
.tenant-header-card {
    width: 100%;
    max-width: 800px;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: auto;
}

.tenant-header-card h1 {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header Styling */
.mediation-container h1 {
    font-size: 2rem;
    color: #102a4d;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mediation-container h2 {
    font-size: 1.6rem;
    color: #102a4d;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Welcome Message */
.mediation-container p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: black;
}

/* Flash Messages */
.notice, .alert {
    padding: 12px;
    margin: 10px 0;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
}

.notice {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mediation Messages */
.mediation-status {
    background: #f1f1f1;
    border-radius: 5px;
    font-size: 1rem;
    margin: 16px auto;
    text-align: center;
    font-weight: bold;
    padding: 12px;
    max-width: 600px;
    display: block;
    width: fit-content;
}

.mediation-status.accepted {
    background-color: #d4edda;
    color: #155724;
}

.mediation-status.pending {
    background-color: #fff3cd;
    color: #856404;
}

/* Mediation Form Card */
.mediation-card {
    background: white;
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
    align-content: space-evenly;
    margin: 0 auto;
}

/* Section Title */
.mediation-card h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Input Group */
.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 15px;
}

/* Label Styling */
.input-group label {
    font-weight: bold;
    color: black;
    margin-bottom: 5px;
}

/* Input and Select Styling */
.input-group input[type="text"],
.input-group select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Submit Button */
.mediation-btn {
    width: fit-content;
    display: inline-block;
    padding: 12px 24px;
    margin: 10px 0;
    font-size: 1rem;
    font-weight: bold;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 5px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mediation-btn:hover {
    background: #0056b3;
}

/* Negotiation requested */
.request-alert {
    background-color: #FFEE8C;
    border: 1px solid #cce0ff;
    padding: 10px 25px;
    margin: 15px auto;
    border-radius: 10px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.request-alert p {
    font-size: 1rem;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 10px 0;

}

/* Intake question reminder - after user choose their landlord */
.intake-alert {
    background-color: #ffd1dc;
    border: 1px solid #cce0ff;
    padding: 10px 25px;
    margin: 15px auto;
    border-radius: 10px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.intake-alert h1 {
    font-size: 1.2rem;
    font-weight: bold;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.intake-alert p {
    font-size: 1rem;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 10px 0;

}

/* Responsive Design */
@media (max-width: 600px) {
    .mediation-container {
        width: 100%;
        max-width: 100%;
        padding: 15px;
        box-sizing: border-box;
        position: relative;
    }

    .mediation-container h1 {
        font-size: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .mediation-container h2 {
        font-size: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .mediation-container p {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .mediation-card {
        width: calc(100% - 20px);
        max-width: 100%;
        padding: 15px;
        margin: 0 10px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .mediation-card h2 {
        font-size: 1.2rem;
    }

    .mediation-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    /* Fix Next Steps box overflow */
    .intake-alert {
        width: calc(100% - 20px);
        max-width: 100%;
        margin: 15px 10px;
        padding: 10px 15px;
        box-sizing: border-box;
    }

    .intake-alert h1 {
        font-size: 1.1rem;
        flex-wrap: wrap;
    }

    .intake-alert p {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    /* Fix request alert overflow */
    .request-alert {
        width: calc(100% - 20px);
        max-width: 100%;
        margin: 15px 10px;
        padding: 10px 15px;
        box-sizing: border-box;
    }

    .request-alert p {
        font-size: 0.9rem;
    }

    /* Make mediation table responsive */
    .mediation-table {
        width: 100%;
        margin: 15px 0;
        display: block;
        overflow: visible;
        box-shadow: none;
        background: transparent;
    }

    .mediation-table thead {
        display: none;
    }

    .mediation-table tbody {
        display: block;
        width: 100%;
    }

    .mediation-table tr {
        display: block;
        width: 100%;
        margin-bottom: 20px;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 15px;
        box-sizing: border-box;
    }

    .mediation-table td {
        display: block;
        width: 100%;
    }

    .mediation-table td {
        padding: 8px 0;
        text-align: left;
        border: none;
        position: relative;
        box-sizing: border-box;
    }

    .mediation-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #102a4d;
        display: inline-block;
        margin-right: 8px;
        font-size: 0.95rem;
    }

    /* Summary and Feedback columns - center them */
    .mediation-table td:nth-last-child(1),
    .mediation-table td:nth-last-child(2) {
        text-align: center;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    /* Keep labels for Summary and Feedback columns visible */
    .mediation-table td:nth-last-child(1)::before,
    .mediation-table td:nth-last-child(2)::before {
        display: inline-block;
        margin-bottom: 8px;
    }

    /* Style action links and submitted text */
    .mediation-table .view-link,
    .mediation-table .complete-link {
        display: inline-block;
        background-color: #102a4d;
        color: white;
        padding: 10px 24px;
        border-radius: 5px;
        text-decoration: none;
        font-weight: bold;
        min-width: 150px;
        box-sizing: border-box;
        margin-top: 5px;
    }

    .mediation-table .view-link:hover,
    .mediation-table .complete-link:hover {
        background-color: #0d2340;
        text-decoration: none;
    }

    .mediation-table .complete-link {
        background-color: #c0392b;
    }

    .mediation-table .complete-link:hover {
        background-color: #a93226;
    }

    /* Hide the "Submitted" text on mobile */
    .mediation-table .text-muted {
        display: none;
    }
}

/* Document Signature Form Inline Styles */
.conversation-card--highlight {
    border: 2px solid #f59e0b;
    background: #fffbeb;
}

.signature-status {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 10px 0;
    color: #475569;
}

.signature-form-inline {
    margin-top: 15px;
}

.form-group-inline {
    margin-bottom: 15px;
}

.sig-label-small {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0f2a49;
    margin-bottom: 6px;
}

.sig-input-small {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.sig-input-small:focus {
    outline: none;
    border-color: #3b82f6;
}

.sig-hint-small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 0.85rem;
}

.form-actions-inline {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.btn-link-small {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-link-small:hover {
    text-decoration: underline;
}

.btn-sign-small {
    padding: 10px 20px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sign-small:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Success CTA Button */
.conversation-cta--success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.conversation-cta--success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
