.tdrf-container {
    max-width: 650px;
    margin: 40px auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    font-family: inherit;
}

.tdrf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tdrf-full {
    grid-column: 1 / -1;
}

.tdrf-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.tdrf-group label span {
    color: #e53e3e;
}

.tdrf-input,
.tdrf-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #4a5568;
    background: #f7fafc;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

.tdrf-input:focus,
.tdrf-textarea:focus {
    outline: none;
    border-color: #3182ce;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.tdrf-textarea {
    resize: vertical;
    min-height: 110px;
}

.tdrf-file-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.tdrf-file-input {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    height: 100%;
    width: 100%;
}

.tdrf-file-box {
    padding: 20px 0 10px;
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    text-align: center;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tdrf-file-wrapper:hover .tdrf-file-box {
    border-color: #3182ce;
    background: #ebf8ff;
    color: #2b6cb0;
}

.tdrf-help-text {
    color: #718096;
    display: block;
    margin-top: 6px;
    font-size: 12px;
}

.tdrf-btn {
    background: #3182ce;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
    margin: 10px 0 0;
}

.tdrf-btn:hover {
    background: #2b6cb0;
}

.tdrf-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.tdrf-alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
    font-size: 14px;
}

.tdrf-success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

.tdrf-error {
    background: #fff5f5;
    color: #9b2c2c;
    border: 1px solid #feb2b2;
}

@media (max-width: 600px) {
    .tdrf-grid {
        grid-template-columns: 1fr;
    }

    .tdrf-container {
        padding: 20px;
    }
}

.tdrf-file-list {
    display: grid;
    grid-template-columns: repeat( 2 , 1fr);
    gap: 8px;
    margin-top: 12px;
    padding: 0 10px 0;
}

.tdrf-file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.tdrf-file-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}

.tdrf-file-name {
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.tdrf-file-size {
    font-size: 12px;
    color: #718096;
    direction: ltr;
}

.tdrf-file-remove {
    flex-shrink: 0;
    padding: 5px 12px 0;
    border: none;
    border-radius: 5px;
    background: #fed7d7;
    color: #c53030;
    cursor: pointer;
}

.tdrf-file-remove:hover {
    background: #feb2b2;
}

.tdrf-file-list button {
    margin: unset
}