/**
 * Moderne minimalistisk design
 * Innsendingsskjema CSS
 */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

button {
    background: #5d5a5a;
    color: #ffffff;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
}

button:hover {
    background: #8f8f8f;
    border-color: #ced4da;
}

.nominering-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0px;
}

.nominering-header {
    text-align: center;
    margin-bottom: 18px;
}

.nominering-header h2 {
    color: #a98a21;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-top: 10px;
}

.nominering-header p {
    color: #6c757d;
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    margin:0;
    padding:0;
    margin-bottom:4px;
}

.kriterie-link {
    width:100%;
    display: inline-block;
    margin-bottom: 8px;
    color: #cd321b;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    margin-bottom:16px;
}

.kriterie-link:hover {
    text-decoration: underline;
}

#ki-info {
    color: #6c757d;
    font-size: 11px;
    font-weight: 400;
    font-style: italic;
    margin:4px;
    margin-bottom: 6px;
}

.form-card {
    background: #f7f7f7;
    border: 3px solid #d4af378a;
    border-radius: 8px;
    padding: 36px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.required {
    color: #dc3545;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b5d0eb;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.char-counter {
    text-align: right;
    font-size: 13px;
    color: #6c757d;
    margin-top: 6px;
}

.ai-help-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin:4px;
    transition: all 0.2s;
    font-weight: 500;
}



.ai-suggestion {
    display: none;
    margin-top: 14px;
    padding: 16px;
    border: 1px dashed #ced4da;
    border-radius: 8px;
    background: #f8f9fa;
}

.ai-suggestion-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
    font-size: 14px;
}

.ai-suggestion p {
    color: #343a40;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
}

.ai-suggestion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.ai-action {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.ai-action.accept {
    color: #ffffff;
}

.ai-action.secondary {
    background: #ffffff;
    border: 1px solid #ced4da;
    color: #495057;
}

/* GDPR Section Styling */
.gdpr-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    margin-top: 28px;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.consent-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
}

.consent-checkbox label {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: #343a40;
    cursor: pointer;
    line-height: 1.5;
}

.consent-checkbox a {
    color: #cd321b;
    text-decoration: none;
}

.consent-checkbox a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.submit-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: center;
    border: 1px solid #c3e6cb;
    font-weight: 500;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    display: none;
    border: 1px solid #f5c6cb;
    font-weight: 500;
}

.partner-logos {
    text-align: center;
    padding: 40px 24px 20px;
    border-top: 1px solid #e9ecef;
    margin-top: 40px;
}

.partner-logos-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
    font-weight: 600;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.logo-placeholder {
    padding: 16px;
    font-size: 13px;
    color: #495057;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    min-width: 20px;
    transition: all 0.2s;
}



/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 2px solid #e9ecef;
    background: #f7f7f7;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
}

.modal-close {
    color: #6c757d;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0 8px;
}

.modal-close:hover,
.modal-close:focus {
    color: #1a1a1a;
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.modal-body section {
    margin-bottom: 32px;
}

.modal-body section:last-child {
    margin-bottom: 0;
}

.modal-body h3 {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e9ecef;
}

.modal-body p {
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.modal-body li {
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 6px;
}

.modal-body .contact-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.6;
}

.modal-body a {
    color: #0066cc;
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .nominering-container {
        padding: 24px 16px;
    }

    .nominering-header h2 {
        font-size: 26px;
    }

    .nominering-header p {
        font-size: 14px;
    }

    .form-card {
        padding: 24px 20px;
    }

    .partner-logos {
        padding: 16px;
    }

    .logos-grid {
        justify-content: center;
    }

    .logo-placeholder {
        padding: 4px;
        min-width: 20px;
        font-size: 12px;
    }

    .modal-content {
        margin: 2% auto;
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-body h3 {
        font-size: 16px;
    }
}
