/* Request Update Page Styles */
.request-update-page {
    min-height: 100vh;
    background-color: #f8f9fa;
}

.request-update-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.owner-info-card {
    border: none;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.owner-info-card .card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    padding: 1rem 1.5rem;
}

.owner-info-card .card-body {
    padding: 1.5rem;
    background-color: #fff;
}

.update-form-card {
    border: none;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.update-form-card .card-header {
    background-color: #fff;
    border-bottom: 2px solid #e9ecef;
    padding: 1rem 1.5rem;
}

.update-form-card .card-body {
    padding: 2rem;
    background-color: #fff;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
    display: flex;
    align-items: center;
}

.form-section-title.property {
    border-bottom-color: #007bff;
    color: #007bff;
}

.form-section-title.owner {
    border-bottom-color: #28a745;
    color: #28a745;
}

.form-section-title.contact {
    border-bottom-color: #17a2b8;
    color: #17a2b8;
}

.current-value {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.form-actions {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin: 2rem -2rem -2rem -2rem;
    padding: 1.5rem 2rem;
    text-align: center;
}

.btn-request-submit {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 123, 255, 0.25);
    transition: all 0.3s ease;
}

.btn-request-submit:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 123, 255, 0.4);
    transform: translateY(-1px);
}

.btn-request-cancel {
    background-color: #6c757d;
    border-color: #6c757d;
    transition: all 0.3s ease;
}

.btn-request-cancel:hover {
    background-color: #545b62;
    border-color: #4e555b;
    transform: translateY(-1px);
}

/* Page Header Styles */
.request-update-header {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border: none;
    box-shadow: 0 0.125rem 0.5rem rgba(255, 193, 7, 0.3);
}

.page-navigation {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Pending Request Styling */
.form-control.border-warning {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.1rem rgba(255, 193, 7, 0.25);
}

.form-control.border-warning:focus {
    border-color: #ffb000;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.pending-change-indicator {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 0.25rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.pending-change-text {
    color: #856404;
    font-weight: 500;
}

/* Existing Request Alert */
.alert-existing-request {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* Form Field Groups */
.form-field-group {
    position: relative;
}

.form-field-group.has-pending-change::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #ffc107;
    border-radius: 2px;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.status-indicator.pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-indicator.current {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Enhanced form styling for existing requests */
.existing-request-form {
    border: 2px solid #ffc107;
    border-radius: 0.5rem;
    background: linear-gradient(to right, #fff3cd 0%, #ffffff 10%);
}

.existing-request-form .card-header {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .request-update-container {
        padding: 1rem 0.5rem;
    }
    
    .update-form-card .card-body {
        padding: 1rem;
    }
    
    .form-actions {
        margin: 1rem -1rem -1rem -1rem;
        padding: 1rem;
    }
    
    .page-navigation {
        flex-direction: column;
        width: 100%;
    }
    
    .page-navigation .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .form-field-group.has-pending-change::before {
        left: -10px;
        width: 2px;
    }
    
    .pending-change-indicator {
        font-size: 0.8rem;
        padding: 0.375rem;
    }
}

/* Form Field Enhancements */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-text {
    font-size: 0.8rem;
    font-style: italic;
}

/* Success/Error Messages */
.alert {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}

/* Loading States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.spinner-border {
    animation: spinner-border 0.75s linear infinite;
}

/* Animation Enhancements */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
}

.btn {
    transition: all 0.3s ease;
}

/* Print Styles */
@media print {
    .request-update-header,
    .form-actions,
    .btn {
        display: none !important;
    }
    
    .update-form-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}