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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #2c5282;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover,
nav a.active {
    opacity: 0.8;
    border-bottom: 2px solid white;
}

/* Main Content */
main {
    padding: 2rem 0;
}

h2 {
    color: #2c5282;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

h3 {
    color: #2c5282;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

h4 {
    color: #2c5282;
    margin-bottom: 0.5rem;
}

/* Hero Section */
.hero {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero h2 {
    margin-bottom: 1rem;
}

/* Content Layout */
.content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.news-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-box li:last-child {
    border-bottom: none;
}

.demo-integration {
    background: #f7fafc;
    border: 2px dashed #4299e1;
}

#integration-placeholder {
    margin-top: 1rem;
    padding: 2rem;
    background: white;
    border-radius: 5px;
    text-align: center;
    color: #718096;
}

/* Document List */
.document-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.document-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.document-date {
    color: #718096;
    font-size: 0.9rem;
}

.document-type {
    color: #4299e1;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.btn-download {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #2c5282;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-download:hover {
    background: #1a365d;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-box a {
    color: #4299e1;
    text-decoration: none;
}

.contact-box a:hover {
    text-decoration: underline;
}

/* Employees */
.employees {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.employee-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.employee-card {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
}

.position {
    color: #718096;
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* Chat Integration */
.chat-integration {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#chat-integration-placeholder {
    margin-top: 1rem;
    padding: 3rem;
    background: #f7fafc;
    border: 2px dashed #4299e1;
    border-radius: 8px;
    text-align: center;
}

.placeholder-text {
    color: #718096;
    font-size: 1.1rem;
}

/* Forms Page */
.forms-intro {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.form-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.form-card h3 {
    margin-bottom: 1rem;
}

.form-card p {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: #2c5282;
    color: white;
}

.btn-primary:hover {
    background: #1a365d;
}

.btn-secondary {
    background: #e2e8f0;
    color: #2c5282;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

/* External Form Integration */
.external-form-integration {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.integration-header {
    margin-bottom: 1.5rem;
}

.integration-area {
    background: #f7fafc;
    border: 2px dashed #4299e1;
    border-radius: 8px;
    padding: 3rem;
    min-height: 300px;
}

.placeholder-content {
    text-align: center;
}

.integration-features {
    list-style: none;
    margin-top: 1.5rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.integration-features li {
    padding: 0.5rem 0;
    color: #4a5568;
}

.help-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.help-section ul {
    margin-top: 1rem;
    list-style: none;
    padding-left: 0;
}

.help-section li {
    padding: 0.5rem 0;
}

.help-section a {
    color: #4299e1;
    text-decoration: none;
}

.help-section a:hover {
    text-decoration: underline;
}

.demo-integration-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

#notification-integration {
    margin-top: 1rem;
    padding: 3rem;
    background: #f7fafc;
    border: 2px dashed #4299e1;
    border-radius: 8px;
    text-align: center;
    color: #718096;
}

/* Zammad Form Styling */
#zammad-feedback-form {
    margin-top: 1rem;
}

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

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

.form-group label,
.zammad-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c5282;
}

.form-control,
.zammad-form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus,
.zammad-form-control:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-control::placeholder,
.zammad-form-control::placeholder {
    color: #a0aec0;
}

textarea.form-control,
textarea.zammad-form-control {
    resize: vertical;
    min-height: 120px;
}

input[type="file"].form-control,
input[type="file"].zammad-form-control {
    padding: 0.5rem;
    cursor: pointer;
}

.zammad-form-checkbox {
    margin-right: 0.5rem;
    cursor: pointer;
    width: auto;
}

.form-group label[for*="checkbox"],
.form-group label[for*="agreement"],
.zammad-form-group label[for*="checkbox"],
.zammad-form-group label[for*="agreement"] {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.zammad-form button[type="submit"],
.zammad-form .btn {
    padding: 0.75rem 2rem;
    background: #2c5282;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

.zammad-form button[type="submit"]:hover,
.zammad-form .btn:hover {
    background: #1a365d;
}

.zammad-form button[type="submit"]:active,
.zammad-form .btn:active {
    transform: translateY(1px);
}

.zammad-form button[type="submit"]:disabled,
.zammad-form .btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

/* Zammad form validation states */
.form-control:invalid:not(:placeholder-shown),
.zammad-form-control:invalid:not(:placeholder-shown) {
    border-color: #e53e3e;
}

.form-control:valid:not(:placeholder-shown),
.zammad-form-control:valid:not(:placeholder-shown) {
    border-color: #48bb78;
}

/* Zammad form success message */
.zammad-form .alert-success,
.zammad-form .success-message {
    padding: 1rem;
    background: #c6f6d5;
    color: #22543d;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 4px solid #48bb78;
}

/* Zammad form error message */
.zammad-form .alert-danger,
.zammad-form .error-message {
    padding: 1rem;
    background: #fed7d7;
    color: #742a2a;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 4px solid #e53e3e;
}

/* Footer */
footer {
    background: #2c5282;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .content {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .forms-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .employee-list {
        grid-template-columns: 1fr;
    }
}
