/* Checklist ISO 27001 Specific Styles */

/* Hero Section for Checklist */
.checklist-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.checklist-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.checklist-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.checklist-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.checklist-hero .hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Progress Overview */
.progress-overview {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.progress-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

.progress-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Container */
.checklist-form {
    padding: 80px 0;
    background: #f8fafc;
}

.checklist-form-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Form Sections */
.form-section {
    padding: 3rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-child {
    border-bottom: none;
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header h2 i {
    color: #3b82f6;
    font-size: 1.5rem;
}

.section-header p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Control Groups */
.control-group {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.control-group h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3b82f6;
    display: inline-block;
}

/* Question Items */
.question-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.question-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #3b82f6;
}

.question-text {
    margin-bottom: 1rem;
}

.question-text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.question-help {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    font-style: italic;
}

/* Question Options */
.question-options {
    display: grid;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.radio-option:hover {
    background: #e0f2fe;
    border-color: #3b82f6;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #3b82f6;
    background: #3b82f6;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-option input[type="radio"]:checked ~ .option-text {
    color: #1e293b;
    font-weight: 500;
}

.option-text {
    font-size: 0.95rem;
    color: #64748b;
    transition: all 0.3s ease;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 3rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.form-actions .btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
}

.form-actions .btn-primary {
    background: #3b82f6;
    color: white;
}

.form-actions .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.form-actions .btn-secondary {
    background: #64748b;
    color: white;
}

.form-actions .btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(100, 116, 139, 0.3);
}

/* Results Modal */
.results-modal {
    max-width: 900px;
}

.results-modal .modal-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

/* Email Modal */
.email-modal {
    max-width: 700px;
}

.email-modal .modal-header {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.email-form {
    max-width: 100%;
}

.email-form .form-group {
    margin-bottom: 1.5rem;
}

.email-form .form-group label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.email-form .form-group input,
.email-form .form-group select,
.email-form .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background: white;
}

.email-form .form-group input:focus,
.email-form .form-group select:focus,
.email-form .form-group textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.email-form .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.email-preview {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.email-preview h4 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.email-preview-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.email-preview-content h5 {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.email-preview-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}

.email-form .form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.email-form .form-actions .btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
}

.email-form .form-actions .btn-primary {
    background: #10b981;
    color: white;
}

.email-form .form-actions .btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.email-form .form-actions .btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.email-form .form-actions .btn-secondary {
    background: #64748b;
    color: white;
}

.email-form .form-actions .btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(100, 116, 139, 0.3);
}

.report-content {
    padding: 1rem 0;
}

.report-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
}

.report-section h4 {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.report-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compliance-level {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compliance-level.excellent {
    background: #dcfce7;
    color: #166534;
}

.compliance-level.good {
    background: #dbeafe;
    color: #1e40af;
}

.compliance-level.fair {
    background: #fef3c7;
    color: #92400e;
}

.compliance-level.poor {
    background: #fee2e2;
    color: #991b1b;
}

.recommendations-list {
    list-style: none;
    padding: 0;
}

.recommendations-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
    position: relative;
    padding-left: 2rem;
}

.recommendations-list li::before {
    content: '•';
    position: absolute;
    left: 0.75rem;
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.2rem;
}

.report-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

/* Progress Indicators */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Section Navigation */
.section-nav {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.section-nav h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-nav li {
    margin-bottom: 0.5rem;
}

.section-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.section-nav a:hover,
.section-nav a.active {
    background: #e0f2fe;
    color: #3b82f6;
}

.section-nav a.completed {
    color: #059669;
}

.section-nav a.completed i {
    color: #059669;
}

/* Responsive Design */
@media (max-width: 768px) {
    .checklist-hero {
        padding: 100px 0 60px;
    }
    
    .checklist-hero .hero-title {
        font-size: 2rem;
    }
    
    .checklist-hero .hero-description {
        font-size: 1rem;
    }
    
    .progress-overview {
        gap: 1.5rem;
    }
    
    .progress-item {
        min-width: 100px;
        padding: 1rem;
    }
    
    .progress-number {
        font-size: 2rem;
    }
    
    .form-section {
        padding: 2rem 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .control-group {
        padding: 1.5rem;
    }
    
    .question-item {
        padding: 1rem;
    }
    
    .question-options {
        gap: 0.5rem;
    }
    
    .radio-option {
        padding: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .report-metrics {
        grid-template-columns: 1fr 1fr;
    }
    
    .report-actions {
        flex-direction: column;
    }
    
    .email-form .form-actions {
        flex-direction: column;
    }
    
    .email-form .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-nav {
        position: relative;
        top: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .checklist-hero {
        padding: 80px 0 40px;
    }
    
    .checklist-hero .hero-title {
        font-size: 1.8rem;
    }
    
    .progress-overview {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .progress-item {
        width: 100%;
        max-width: 200px;
    }
    
    .form-section {
        padding: 1.5rem 1rem;
    }
    
    .control-group {
        padding: 1rem;
    }
    
    .question-item {
        padding: 0.75rem;
    }
    
    .question-text strong {
        font-size: 1rem;
    }
    
    .option-text {
        font-size: 0.9rem;
    }
    
    .report-metrics {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Success States */
.success-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #059669;
    font-weight: 500;
}

.success-indicator i {
    color: #059669;
}

/* Warning States */
.warning-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #d97706;
    font-weight: 500;
}

.warning-indicator i {
    color: #d97706;
}

/* Error States */
.error-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #dc2626;
    font-weight: 500;
}

.error-indicator i {
    color: #dc2626;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .form-actions,
    .report-actions {
        display: none;
    }
    
    .checklist-form-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .form-section {
        page-break-inside: avoid;
    }
    
    .question-item {
        page-break-inside: avoid;
    }
}
