/* ==========================================================================
   Handelsplan Page Specific Styles (from handelsplan.njk)
   ========================================================================== */

/* Handelsplan-specific utility classes */
.full-width {
    width: 100%;
}

.required-asterisk {
    color: #dc3545;
}

.required-note {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Disclaimer Modal */
.disclaimer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.disclaimer-modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.disclaimer-title {
    color: #d32f2f;
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.disclaimer-content {
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.disclaimer-content h3 {
    color: var(--primary);
    margin: 20px 0 10px 0;
}

.disclaimer-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.disclaimer-content li {
    margin-bottom: 8px;
}

.disclaimer-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.accept-btn, .decline-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.accept-btn {
    background-color: #4caf50;
    color: white;
}

.accept-btn:hover {
    background-color: #45a049;
}

.decline-btn {
    background-color: #f44336;
    color: white;
}

.decline-btn:hover {
    background-color: #d32f2f;
}

.disclaimer-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.9rem;
}

/* Form Styles */
.form-section {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    transition: transform 0.3s;
}

.form-section:hover {
    transform: translateY(-5px);
}

.section-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 1em;
    color: var(--accent);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    color: var(--text-gray);
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95em;
}

input, select, textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Roboto', sans-serif;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.risk-indicator {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.risk-level {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: 500;
}

.risk-low {
    background-color: #4caf50;
    color: white;
}

.risk-medium {
    background-color: #ff9800;
    color: white;
}

.risk-high {
    background-color: #f44336;
    color: white;
}

.risk-level.selected {
    border-color: var(--dark);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 3rem;
}

/* Output Section */
.output-section {
    margin-top: 3rem;
    padding: 3rem;
    background-color: #f0f7ff;
    border-radius: 10px;
    border: 2px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.output-title {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    line-height: 1.8;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.plan-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.plan-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3em;
}

.plan-section h3 i {
    color: var(--accent);
    margin-right: 0.4em;
}

.plan-warning {
    background: #fff3cd;
    border: 2px solid var(--accent);
    padding: 20px;
    border-radius: 10px;
}

.plan-warning h3,
.plan-warning p {
    color: #856404;
}

.plan-section p {
    margin-bottom: 0.5rem;
}

.plan-section ul {
    margin-left: 20px;
    margin-top: 0.5rem;
}

.plan-section li {
    margin-bottom: 0.3rem;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 2rem;
}

.action-btn {
    padding: 10px 25px;
    font-size: 1em;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.action-btn:hover {
    background-color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Danger Button (for reset form) */
.btn-danger {
    background-color: #dc3545;
    color: white;
    border: 2px solid #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Handelsplan-specific responsive adjustments */
@media screen and (max-width: 768px) {
    .button-container, .action-buttons, .disclaimer-buttons {
        flex-direction: column;
    }

    .button-container .btn, .action-btn, .accept-btn, .decline-btn {
        width: 100%;
    }

}

/* Print Styles */
@media print {
    @page {
        size: A4;
        margin: 20mm;
    }

    body {
        background: white;
        font-size: 11pt;
        line-height: 1.5;
        color: black;
    }

    header, footer, .form-section, .button-container, .action-buttons, .disclaimer-overlay, .hero {
        display: none !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    section {
        padding: 0;
        border: none;
    }

    #mainContent, .output-section {
        display: block !important;
        border: none !important;
        background: white !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .output-title {
        font-size: 24pt;
        margin-bottom: 20pt;
        color: black;
        text-align: center;
        page-break-after: avoid;
    }

    .plan-content {
        box-shadow: none !important;
        padding: 0 !important;
        background: white !important;
    }

    .plan-section {
        page-break-inside: avoid;
        margin-bottom: 15pt;
        padding-bottom: 10pt;
        border-bottom: 1pt solid #ddd;
    }

    .plan-section h3 {
        font-size: 14pt;
        margin-bottom: 8pt;
        color: black;
        page-break-after: avoid;
    }

    .plan-section p {
        font-size: 11pt;
        margin-bottom: 4pt;
    }

    .plan-section ul {
        margin-left: 15pt;
    }

    .plan-section li {
        font-size: 11pt;
        margin-bottom: 2pt;
    }

    .plan-section[data-print-warning] {
        border: 2pt solid #ffc107 !important;
        padding: 10pt !important;
        background: #fff3cd !important;
        page-break-inside: avoid;
    }

    strong {
        font-weight: bold;
        color: black;
    }

    .plan-section:nth-child(4n) {
        page-break-after: auto;
    }
}
