/* Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

header .subtitle {
    font-size: 16px;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 30px 40px;
    border-bottom: 1px solid #e0e0e0;
}

.section:last-of-type {
    border-bottom: none;
}

.section h2 {
    color: #667eea;
    font-size: 24px;
    margin-bottom: 20px;
}

.help-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Form elements */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
}

.form-group.full-width {
    width: 100%;
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
}

/* Questions table */
.questions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.questions-table tr.salt-header th {
    padding: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border: 1px solid #ddd;
}

.questions-table tr.spacer td {
    height: 20px;
    border: none;
}

.questions-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.questions-table tr.question-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.questions-table tr.question-row:hover {
    background-color: #f8f9fa;
}

.questions-table tr.question-row:active {
    background-color: #e9ecef;
}

.questions-table td {
    padding: 12px;
    vertical-align: middle;
}

.questions-table .question-text {
    font-size: 14px;
    color: #444;
    user-select: none; /* Zabrání výběru textu při dvojkliku */
}

.questions-table .question-text label {
    cursor: pointer;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.questions-table .checkbox-cell {
    width: 80px;
    text-align: center;
}

/* Custom checkbox */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

input[type="checkbox"] + label {
    display: none;
}

/* Form actions */
.form-actions {
    padding: 30px 40px;
    text-align: center;
    background: #f9f9f9;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Footer */
footer {
    padding: 30px 40px;
    text-align: center;
    background: #f9f9f9;
    color: #666;
    font-size: 14px;
}

footer p {
    margin-bottom: 10px;
}

footer .copyright {
    margin-top: 15px;
    font-size: 12px;
    color: #999;
}

/* Success/Error messages */
.success-message,
.error-message {
    padding: 80px 40px;
    text-align: center;
}

.success-icon,
.error-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 30px;
    font-size: 48px;
    font-weight: bold;
}

.success-icon {
    background: #d4edda;
    color: #155724;
}

.error-icon {
    background: #f8d7da;
    color: #721c24;
}

.success-message h1,
.error-message h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 15px;
}

.success-message p,
.error-message p {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.success-message .highlight {
    font-weight: 600;
    color: #667eea;
    font-size: 18px;
    margin-top: 20px;
}

.contact-info {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.contact-info p {
    margin: 5px 0;
}

.btn-back {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.btn-back:hover {
    background: #5568d3;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        border-radius: 0;
    }

    header {
        padding: 30px 20px;
    }

    header h1 {
        font-size: 24px;
    }

    .section {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .questions-table {
        font-size: 13px;
    }

    .questions-table td,
    .questions-table th {
        padding: 8px;
    }

    .form-actions {
        padding: 20px;
    }

    .btn-submit {
        padding: 12px 30px;
        font-size: 16px;
        width: 100%;
    }
}
