/* Custom Styles for NZ Will Creator */
/* Professional Color Scheme - Inspired by Public Trust */

:root {
    /* Primary Colors - Deep Teal (Modern & Trustworthy) */
    --primary-color: #023047; /* Deep Ocean Blue */
    --primary-dark: #012a3a;
    --primary-light: #126782;
    
    /* Secondary Colors - Warm Coral/Orange (Energy & Action) */
    --secondary-color: #FB8500; /* Vibrant Orange */
    --secondary-dark: #d97000;
    --secondary-light: #ffb703;
    
    /* Accent Colors */
    --accent-color: #219EBC; /* Bright Teal - Professional & Modern */
    --accent-dark: #1a7c94;
    --accent-light: #8ECAE6;
    
    /* Neutral Colors */
    --text-primary: #1f2937; /* Gray 800 */
    --text-secondary: #4b5563; /* Gray 600 */
    --text-muted: #6b7280; /* Gray 500 */
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa; /* Light Gray */
    --bg-tertiary: #e9ecef; /* Gray 200 */
    
    /* Status Colors */
    --success-color: #10b981;
    --warning-color: #ffb703;
    --danger-color: #ef4444;
    --info-color: #219EBC;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Navbar - Deep Teal with gradient */
.navbar-dark.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #034661 100%) !important;
    box-shadow: 0 2px 8px rgba(2, 48, 71, 0.2);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Header */
header.bg-light {
    background-color: var(--bg-secondary) !important;
    border-bottom: 4px solid var(--secondary-color);
}

/* Trust Badges */
.trust-badge {
    padding: 15px;
    background: white;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.trust-badge i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* Circle Numbers for Steps */
.circle-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(33, 158, 188, 0.3);
}

/* Feature Boxes */
.feature-box {
    padding: 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    height: 100%;
    transition: all 0.3s ease;
    background: white;
}

.feature-box:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 16px rgba(33, 158, 188, 0.2);
    transform: translateY(-2px);
}

.feature-box h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

/* Form Styles */
.form-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    border: 1px solid #d1d5db;
}

/* Progress Container */
.progress-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    position: sticky;
    top: 20px;
}

.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e5e7eb;
}

.progress-bar {
    background: linear-gradient(90deg, var(--accent-dark) 0%, var(--accent-light) 100%);
    transition: width 0.3s ease;
}

/* Progress Steps List */
.progress-steps {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.progress-steps li {
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: default;
}

.progress-steps li.completed {
    background: #d1fae5;
    color: #065f46;
    font-weight: 500;
}

.progress-steps li.active {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(33, 158, 188, 0.3);
}

.progress-steps li.pending {
    background: #f3f4f6;
    color: #6b7280;
}

/* Section Headers - Modern Gradient (Deep Teal to Bright Teal) */
.section-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-dark) 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 0;
    margin: -30px -30px 25px -30px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(2, 48, 71, 0.15);
}

.section-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

/* Form Steps - Multi-step display control */
.form-step,
.step-content {
    display: none;
}

.form-step.active,
.step-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Review Section */
.review-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.review-section h4 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.review-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.review-item:last-child {
    border-bottom: none;
}

.review-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.review-value {
    color: var(--text-secondary);
    margin-left: 10px;
}

/* Item Container (for multiple executors, bequests, etc.) */
.item-container {
    border: 1px solid #d1d5db;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f9fafb;
    position: relative;
}

.item-container .remove-item-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

/* Buttons */
.btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 48, 71, 0.3);
}

.btn-success {
    background-color: var(--secondary-color);
    border: none;
    color: white;
}

.btn-success:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 133, 0, 0.4);
}

.btn-secondary {
    background-color: #6b7280;
    border: none;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    border: none;
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
}

.btn-danger {
    background-color: var(--danger-color);
    border: none;
    color: white;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

/* Helper Text */
.helper-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 5px;
    font-style: italic;
}

/* Success Message */
.success-message {
    background-color: #d1fae5;
    border: 2px solid var(--success-color);
    color: #065f46;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.success-message h4 {
    margin-bottom: 15px;
    color: #065f46;
    font-weight: 600;
}

/* PDF Preview */
.pdf-preview {
    background: white;
    padding: 30px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    max-height: 600px;
    overflow-y: auto;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Instructions Page */
.instruction-step {
    background: white;
    padding: 25px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.instruction-step:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-left-width: 6px;
}

.instruction-step h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.instruction-step ul {
    margin-bottom: 0;
}

/* Warning Boxes */
.warning-box {
    background-color: #fef3c7;
    border: 2px solid var(--warning-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.warning-box h5 {
    color: #92400e;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Info Boxes */
.info-box {
    background-color: #dbeafe;
    border: 2px solid var(--info-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.info-box h5 {
    color: #1e40af;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Focus States */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(43, 52, 103, 0.25);
    outline: none;
}

/* Cards */
.card {
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Alerts */
.alert-info {
    background-color: #dbeafe;
    border: 2px solid var(--info-color);
    color: #1e40af;
    border-radius: 8px;
}

.alert-warning {
    background-color: #fef3c7;
    border: 2px solid var(--warning-color);
    color: #92400e;
    border-radius: 8px;
}

.alert-success {
    background-color: #d1fae5;
    border: 2px solid var(--success-color);
    color: #065f46;
    border-radius: 8px;
}

.alert-danger {
    background-color: #fee2e2;
    border: 2px solid var(--danger-color);
    color: #991b1b;
    border-radius: 8px;
}

/* Footer */
footer.bg-dark {
    background-color: var(--primary-dark) !important;
    color: white;
}

footer a {
    color: #d1d5db;
}

footer a:hover {
    color: white;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.85em;
    border-radius: 6px;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: white !important;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.testimonial-rating {
    color: #f59e0b;
    margin-bottom: 15px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-section {
        padding: 20px;
    }
    
    .section-header {
        margin: -20px -20px 20px -20px;
        padding: 15px 20px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .navigation-buttons .btn {
        width: 100%;
    }
    
    .progress-container {
        position: relative;
        top: 0;
    }
}

/* Print Styles */
@media print {
    .navbar, .navigation-buttons, .progress-container, footer {
        display: none;
    }
    
    .form-section {
        box-shadow: none;
        border: 1px solid #000;
        page-break-inside: avoid;
    }
    
    body {
        background: white;
    }
}
