/* Custom CSS for Rental Application Form */

/* Body styling */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Form container styling */
.form-container {
    padding: 50px 0;
}

/* Card styling */
.card {
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.card-header {
    border-bottom: none;
    padding: 25px 30px;
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

.card-body {
    padding: 30px;
}

/* Section titles */
.section-title {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Form styling */
.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-control::placeholder {
    color: #bdc3c7;
}

/* Label styling */
label {
    font-weight: 500;
    color: #34495e;
    margin-bottom: 8px;
}

/* Custom checkbox and radio styling */
.custom-control-label {
    padding-top: 2px;
    cursor: pointer;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #3498db;
    border-color: #3498db;
}

/* Button styling */
.btn {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    border: none;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #2573a7 0%, #2980b9 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: #95a5a6;
    border: none;
}

.btn-secondary:hover, .btn-secondary:focus {
    background: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(127, 140, 141, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border: none;
}

.btn-success:hover, .btn-success:focus {
    background: linear-gradient(135deg, #219d54 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    color: white;
}

.btn-info:hover, .btn-info:focus {
    background: linear-gradient(135deg, #2980b9 0%, #2573a7 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    color: white;
}

/* Navigation buttons */
.form-navigation {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

/* Progress bar */
.progress {
    height: 10px;
    border-radius: 10px;
    background-color: #ecf0f1;
}

.progress-bar {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Form sections */
.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Cards for sections */
.reference-row,
.occupant-row {
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.reference-row:hover,
.occupant-row:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive styling */
@media (max-width: 768px) {
    .form-container {
        padding: 20px 0;
    }
    
    .card-header {
        padding: 20px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Input group styling */
.input-group-text {
    background-color: #3498db;
    color: white;
    border: none;
    font-weight: 600;
}

/* Alert styling */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Pet details animation */
#petDetails {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

#petDetails.show {
    max-height: 500px;
}

/* Success modal styling */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}
