.file-upload {
    width: 100%;
}

.file-upload-box {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px dashed #d1d5db;
    border-radius: 12px !important;
    background: transparent;
    cursor: pointer;
    transition: all .2s ease;
    width: calc(100% - 4px);
    height: 55px;
    font-size: .9rem;
}

.file-upload-box:hover {
    border-color: var(--accent-color);
}

.file-upload-icon {
    display: flex;
    color: var(--accent-color);
    margin-left: 14px;
}

.file-upload-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.file-upload-title {
    font-weight: 600;
    color: #d1d1d1;
}

.file-upload-subtitle {
    font-size: 13px;
    color: #6b7280;
}

.file-upload-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #6b6b6b;
    border-radius: 10px;
    background: #2a3c58;
}

.file-upload-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #6c778c;
    border-radius: 8px;
    font-size: 20px;
}

.file-upload-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 4px;
}

.file-upload-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-upload-size {
    font-size: 12px;
    color: #6b7280;
}

.file-upload-remove {
    border: none;
    background: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.file-upload-remove:hover {
    color: #ef4444;
}

.file-upload-section {
    display: flex;
    flex-direction: column;
}


.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


.afm-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
}

.checkout-input.afm {
	flex: 1;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1.5px solid #ccc;
	outline: none;
	font-size: 15px;
	transition: border 0.25s ease;
}

.checkout-input.afm:focus {
	border-color: var(--themed-gradient, #6a5acd);
}

.afm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: gray;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: not-allowed;
    transition: background 0.3s, transform 0.2s;
    flex-shrink: 0;
}

.afm-btn.enabled {
	background: var(--accent-color);
	cursor: pointer;
}

.afm-btn.enabled:hover {
	transform: scale(1.05);
}

.company-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #243855;
    padding: 14px;
    border-radius: 12px;
}


.company-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.company-info {
    display: flex;
	flex-direction: column;
	line-height: 1.2;
	gap: 5px;
}

.company-name {
    font-weight: 600;
    color: #ffffff;
}

.company-sub {
    font-size: 14px;
    color: #9a9a9a;
}

.delete-btn {
    background: #cfcfcf30;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff7e7e;
}

.delete-btn:hover {
	background: rgba(255, 1, 1, 0.1);
}

/* Loading state */
.afm-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin-top: 12px;
    border-radius: 10px;
    background: #243855;
    color: #fff;
    font-size: 14px;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

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

/* AFM validation error */
.afm-error {
    margin-top: 12px;
    padding: 14px;
    border-radius: 10px;
    background: #09111b;
    border: 1px solid #551717;
    color: #b54f4f;
    font-size: 14px;
    line-height: 1.5;
}

/* Prevent button interaction while loading */
.afm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Optional transition when fields are revealed */
#signup-fields {
    animation: revealFields 0.3s ease;
}

@keyframes revealFields {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}