/* ===================================
   Tönsberg Kontaktformular Styles
   =================================== */

/* Container */
.tkf-container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.tkf-form-wrapper {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .tkf-form-wrapper {
        padding: 24px;
    }
}

/* Form Messages */
.tkf-form-messages {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.tkf-form-messages.success {
    background-color: #F0FDF4;
    border: 1px solid #86EFAC;
    color: #166534;
}

.tkf-form-messages.error {
    background-color: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
}

/* Form Layout */
.tkf-form-row {
    margin-bottom: 24px;
}

.tkf-form-row-2cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 640px) {
    .tkf-form-row-2cols {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Form Groups */
.tkf-form-group {
    position: relative;
}

/* Labels */
.tkf-container .tkf-label,
.tkf-contact-form .tkf-label {
    display: block;
    font-size: 14px;
    font-weight: 700 !important;
    color: #374151;
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.tkf-required {
    color: #EF4444;
    font-weight: 600;
}

/* Input Fields */
.tkf-input,
.tkf-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: #1F2937;
    background-color: #F3F4F6;
    border: 2px solid #E5E7EB;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.5;
}

.tkf-input:focus,
.tkf-textarea:focus {
    outline: none;
    background-color: #FFFFFF;
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.tkf-input::placeholder,
.tkf-textarea::placeholder {
    color: #9CA3AF;
}

.tkf-textarea {
    resize: vertical;
    min-height: 140px;
}

/* Input States */
.tkf-input.error,
.tkf-textarea.error {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

.tkf-input.success,
.tkf-textarea.success {
    border-color: #10B981;
    background-color: #F0FDF4;
}

/* Error Messages */
.tkf-error {
    display: block;
    font-size: 13px;
    color: #EF4444;
    margin-top: 6px;
    min-height: 18px;
    line-height: 1.4;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Checkbox Group */
.tkf-checkbox-group {
    margin-top: 8px;
}

.tkf-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 12px;
}

.tkf-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #EF4444;
}

.tkf-checkbox-text {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.6;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.tkf-checkbox-text a {
    color: #EF4444;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.tkf-checkbox-text a:hover {
    color: #DC2626;
}

/* Required Note */
.tkf-required-note {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
    font-style: italic;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Submit Button */
.tkf-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    background-color: #EF4444;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.tkf-submit-btn:hover {
    background-color: #DC2626;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.tkf-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.tkf-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.tkf-btn-icon {
    flex-shrink: 0;
}

.tkf-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Loading Spinner */
.tkf-spinner {
    animation: tkf-spin 1s linear infinite;
}

.tkf-spinner-circle {
    stroke-dasharray: 60;
    stroke-dashoffset: 15;
    stroke-linecap: round;
    fill: none;
    opacity: 0.3;
}

@keyframes tkf-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Optimization */
@media (max-width: 640px) {
    .tkf-submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tkf-input,
    .tkf-textarea {
        font-size: 16px;
    }
}

/* Focus Visible for Accessibility */
.tkf-input:focus-visible,
.tkf-textarea:focus-visible,
.tkf-checkbox:focus-visible,
.tkf-submit-btn:focus-visible {
    outline: 2px solid #EF4444;
    outline-offset: 2px;
}

/* Success State Animation */
@keyframes tkf-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tkf-form-messages {
    animation: tkf-fadeIn 0.3s ease;
}
