/* ================================================
   CF7 Contact Form - Compact Refined Design
   ================================================ */

/* Form container - Compact */
#kontakt .contact-form,
.contact-section .contact-form {
    max-width: 560px !important;
    margin: 0 auto !important;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%) !important;
    padding: 24px 28px 20px !important;
    border-radius: 20px !important;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 20px 40px -8px rgba(107, 140, 175, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* CF7 form reset */
#kontakt .wpcf7-form > p,
.contact-section .wpcf7-form > p {
    margin: 0 !important;
}

#kontakt .wpcf7-form br,
.contact-section .wpcf7-form br {
    display: none !important;
}

/* Input Fields */
#kontakt input[type="text"],
#kontakt input[type="tel"],
#kontakt input[type="email"],
#kontakt textarea,
.contact-section input[type="text"],
.contact-section input[type="tel"],
.contact-section input[type="email"],
.contact-section textarea {
    all: unset !important;
    display: block !important;
    width: 100% !important;
    padding: 14px 16px !important;
    background: linear-gradient(180deg, #f8f9fb 0%, #f3f5f8 100%) !important;
    border: 1px solid rgba(107, 140, 175, 0.15) !important;
    border-radius: 12px !important;
    font-family: 'Source Sans 3', -apple-system, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #2d3748 !important;
    box-sizing: border-box !important;
    margin-bottom: 10px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

/* Placeholder */
#kontakt input::placeholder,
#kontakt textarea::placeholder,
.contact-section input::placeholder,
.contact-section textarea::placeholder {
    color: #8b9bb4 !important;
    opacity: 1 !important;
}

/* Focus */
#kontakt input[type="text"]:focus,
#kontakt input[type="tel"]:focus,
#kontakt input[type="email"]:focus,
#kontakt textarea:focus,
.contact-section input[type="text"]:focus,
.contact-section input[type="tel"]:focus,
.contact-section input[type="email"]:focus,
.contact-section textarea:focus {
    outline: none !important;
    background: #ffffff !important;
    border-color: rgba(107, 140, 175, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(107, 140, 175, 0.1) !important;
}

/* Textarea - Compact */
#kontakt textarea,
.contact-section textarea {
    min-height: 70px !important;
    max-height: 70px !important;
    resize: none !important;
    line-height: 1.5 !important;
}

/* Exclude submit and checkbox */
#kontakt input[type="submit"],
#kontakt input[type="checkbox"],
.contact-section input[type="submit"],
.contact-section input[type="checkbox"] {
    all: unset !important;
}

/* Checkbox */
#kontakt .form-checkbox,
.contact-section .form-checkbox {
    margin: 12px 0 4px !important;
}

#kontakt .form-checkbox p,
.contact-section .form-checkbox p {
    margin: 0 !important;
}

#kontakt .wpcf7-acceptance label,
.contact-section .wpcf7-acceptance label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    cursor: pointer !important;
    padding: 0 !important;
    font-size: 13px !important;
    color: #4a5568 !important;
    line-height: 1.5 !important;
}

#kontakt .wpcf7-acceptance input[type="checkbox"],
.contact-section .wpcf7-acceptance input[type="checkbox"] {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 1px 0 0 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 2px solid rgba(107, 140, 175, 0.3) !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

#kontakt .wpcf7-acceptance input[type="checkbox"]:checked,
.contact-section .wpcf7-acceptance input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #6b8caf 0%, #5a7a9d 100%) !important;
    border-color: #5a7a9d !important;
}

#kontakt .wpcf7-acceptance input[type="checkbox"]:checked::after,
.contact-section .wpcf7-acceptance input[type="checkbox"]:checked::after {
    content: '✓' !important;
    color: white !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

#kontakt .wpcf7-acceptance a,
.contact-section .wpcf7-acceptance a {
    color: #6b8caf !important;
    text-decoration: underline !important;
}

#kontakt .wpcf7-not-valid-tip,
.contact-section .wpcf7-not-valid-tip {
    display: none !important;
}

/* Form note */
#kontakt p.form-note,
.contact-section p.form-note {
    font-size: 12px !important;
    color: #8b9bb4 !important;
    margin: 4px 0 12px !important;
}

/* Submit Button */
#kontakt input[type="submit"],
#kontakt .wpcf7-submit,
.contact-section input[type="submit"],
.contact-section .wpcf7-submit {
    all: unset !important;
    display: block !important;
    width: 100% !important;
    padding: 14px 28px !important;
    background: linear-gradient(135deg, #6b8caf 0%, #5a7a9d 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 100px !important;
    font-family: 'Source Sans 3', -apple-system, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 14px rgba(107, 140, 175, 0.35) !important;
    transition: all 0.25s ease !important;
}

#kontakt input[type="submit"]:hover,
#kontakt .wpcf7-submit:hover,
.contact-section input[type="submit"]:hover,
.contact-section .wpcf7-submit:hover {
    background: linear-gradient(135deg, #5a7a9d 0%, #4a6a8d 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(107, 140, 175, 0.4) !important;
}

/* Response Messages */
#kontakt .wpcf7-response-output,
.contact-section .wpcf7-response-output {
    margin: 12px 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    border: none !important;
    text-align: center !important;
}

#kontakt .wpcf7 form.sent .wpcf7-response-output,
.contact-section .wpcf7 form.sent .wpcf7-response-output {
    background: #d1fae5 !important;
    color: #065f46 !important;
}

#kontakt .wpcf7 form.invalid .wpcf7-response-output,
#kontakt .wpcf7 form.failed .wpcf7-response-output,
.contact-section .wpcf7 form.invalid .wpcf7-response-output,
.contact-section .wpcf7 form.failed .wpcf7-response-output {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

/* Form badge */
#kontakt .form-badge,
.contact-section .form-badge {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 16px !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(107, 140, 175, 0.1) !important;
    font-size: 12px !important;
    color: #8b9bb4 !important;
}

#kontakt .form-badge svg,
.contact-section .form-badge svg {
    width: 16px !important;
    height: 16px !important;
    color: #22c55e !important;
}

/* ================================================
   Checkbox Validation Error - Soft pink from image
   ================================================ */

#kontakt .wpcf7-acceptance.highlight-error label,
.contact-section .wpcf7-acceptance.highlight-error label {
    background: #fbebeb !important;
    color: #8b4c4c !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    margin: -4px -8px !important;
    animation: shake 0.5s ease-in-out !important;
    border: 1px solid #f0d4d4 !important;
}

#kontakt .wpcf7-acceptance.highlight-error a,
.contact-section .wpcf7-acceptance.highlight-error a {
    color: #a05252 !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}
