/* SUDB Reseller Form Styles */
.sudb-reseller-form-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.sudb-reseller-form {
    background: #fff;
}

/* Form Rows */
.sudb-reseller-form .sudb-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.sudb-reseller-form .sudb-form-col {
    flex: 1;
}

/* Labels */
.sudb-reseller-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

/* Inputs */
.sudb-reseller-form input[type="text"],
.sudb-reseller-form input[type="email"],
.sudb-reseller-form input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    background: #f9f9f9;
    box-sizing: border-box;
}

.sudb-reseller-form input:focus {
    outline: none;
    border-color: #333;
    background: #fff;
}

/* Form Sections */
.sudb-reseller-form .sudb-form-section {
    margin-bottom: 20px;
}

.sudb-reseller-form input[type="file"] {
    padding: 10px;
    border: 1px solid #ddd;
    background: #fff;
    width: 100%;
}

/* File Preview */
.sudb-file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.sudb-preview-item {
    width: 120px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 10px;
    background: #f9f9f9;
}

.sudb-preview-item img {
    max-width: 100%;
    max-height: 80px;
    display: block;
    margin: 0 auto 8px;
    object-fit: contain;
}

.sudb-preview-name {
    display: block;
    font-size: 11px;
    color: #666;
    word-break: break-all;
    line-height: 1.3;
}

.sudb-pdf-icon {
    width: 50px;
    height: 60px;
    background: #e74c3c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    margin: 0 auto 8px;
}

/* Submit Button */
.sudb-reseller-form .sudb-form-submit {
    margin-top: 30px;
}

.sudb-submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: #29abe2;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.sudb-submit-btn:hover {
    background: #1a8fc2;
}

.sudb-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Messages */
.sudb-form-messages {
    margin-top: 15px;
    padding: 15px;
    display: none;
}

.sudb-form-messages.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sudb-form-messages.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading State */
.sudb-reseller-form.loading .sudb-submit-btn {
    position: relative;
    color: transparent;
}

.sudb-reseller-form.loading .sudb-submit-btn::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: sudb-reseller-spin 0.8s linear infinite;
}

@keyframes sudb-reseller-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .sudb-reseller-form .sudb-form-row {
        flex-direction: column;
        gap: 15px;
    }
}
