.ts-form-container {
    /* max-width: 600px; */
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.ts-form {
    display: flex;
    flex-direction: column;
}

.ts-form-field {
    margin-bottom: 15px;
}

.ts-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.ts-form-field input[type="text"],
.ts-form-field input[type="tel"],
.ts-form-field input[type="email"],
.ts-form-field textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.ts-form-field textarea {
    height: 100px;
}

.ts-submit-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.ts-submit-btn:hover {
    background-color: #45a049;
}

.ts-submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.ts-submit-btn.loading {
    position: relative;
    color: transparent;
}

.ts-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ts-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.ts-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.ts-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.ts-message-icon {
    font-size: 24px;
    margin-right: 10px;
}

.ts-message-content {
    flex-grow: 1;
}

.ts-message-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.ts-file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    min-height: 100px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
}

.ts-file-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ts-remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.8);
    color: white;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.ts-remove-file:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

.ts-file-preview-item img,
.ts-file-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ts-add-file {
    width: 100px;
    height: 100px;
    border: 2px dashed #aaa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: white;
}

.ts-add-file:hover {
    border-color: #666;
    background: #f9f9f9;
}

.ts-add-file-icon {
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>') no-repeat center;
    background-size: contain;
}

.ts-upload-text {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.ts-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.ts-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.ts-modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.ts-modal-close:hover,
.ts-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.ts-ticket-files {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.ts-ticket-file {
    width: 100px;
    height: 100px;
    overflow: hidden;
}

.ts-ticket-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.ts-image-popup {
    display: flex;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.ts-image-popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.ts-image-popup-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.ts-image-popup-close {
    position: absolute;
    top: -30px;
    right: 0;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.ts-clear-attachments {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.ts-clear-attachments:hover {
    background-color: #c82333;
}

.ts-hidden-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.ts-validation-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/* File input validation için özel stil */
.ts-form-field.has-error .ts-file-preview {
    border: 2px dashed #dc3545;
}

.ts-form-field.has-error .ts-validation-message {
    display: block;
}